Currently I'm writing a JavaScript file and have the following line:
var res = "JSON=" + JSON.stringify(result);
result is being set just above this line. The issue I'm having is that IE8 (IE8 only, that is) is reporting to me that JSON is undefined somehow. I'm not sure what to make of this since, as I understood it, IE8 is a browser that implemented JSON support. Does anyone have any idea what might be going on?
put following code in your js file ;
Using jQuery.parseJSON solved this for me, in case you are already using JQuery.