1 Reply Latest reply on Jun 14, 2018 6:38 AM by Tomas Sinkunas

    JSON is undefined error

    TimSx Level 1

      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);




      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?