Have some JavaScript that assigns values to an object using $.data and then uses JSON.stringify. It was working in 1.4.4 (got actual JSON data) but it is broken in 1.5.2+ (empty ...
I'm trying to send JSON data to my web server via jQuery and I'm running into an error.
Uncaught TypeError: Cannot use 'in' operator to search for 'context' in {"id":45,"isRead":true}
code I am ...
The same happens with jQuery: $.JSON.encode()
What could cause this? I am passing in a simple array of objects, where each object has string properties. I have looped through ...
JSON2 is there to stand in if there is no native JSON parsing in the browser. The whole point of jQuery's change to using native JSON is that, if you are in a browser without native JSON, but you have JSON2, you still will get JSON.parse and JSON.stringify, rather than falling all the way back to eval.