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?
If you have jQuery, use isPlainObject.
if ($.isPlainObject(my_var)) {}