JSON is undefined error
I've use JSON.parse() and JSON.stringify() numerous times. For some very odd reason, whenever I try to use JSON now, an error is thrown saying that JSON is undefined.
This is a toy example to showcase how strange this is:
var jstr = JSON.stringify({obj:12}); // JSON is undefined error here
var obj = JSON.parse(jstr);
alert(obj);
In AE Scripting guide, it says that it uses ECMA-262 specification, which includes support for JSON.
Has anyone else experience this bizarreness? Is there a fix or should I just bring in my own JSON functions?
