I\'ve got an AJAX request that expects JSON in response.
But there\'s a possibility that what gets returns may not be JSON, but rather an HTML error page (unfortunat
try { jQuery.parseJson(json_string_here); } catch(e) { ... malformed json ... }