$. parseJSON works fine in Firefox, Chrome, and Safari using the code below. However, in Internet Explorer 10, the script cannot get a valid object.
Here's jsFiddle: http://jsfiddle.net/gahathat/sq6Lb/
And js code:
string = '{"result":"success"}'; $('#json_string').text(string); item = $.parseJSON(string); $('#json_result').text(item.result);
Is there a workaround for Internet Explorer that would fix this error?
source share