My server side code returns a value which is a json object on success and a string \'false\' on failure. Now how can I check whether the returned value is a json object?
You should return json always, but change its status, or in following example the ResponseCode property:
if(callbackResults.ResponseCode!="200"){ /* Some error, you can add a message too */ } else { /* All fine, proceed with code */ };