Can someone tell me what the difference is between the 2 JSON parsers?
https://github.com/douglascrockford/JSON-js/blob/master/json.js
https://github.com/douglascrockford/JSON-js/blob/master/json2.js
I have a JSON file from 2007-04-13 (It has methods such as parseJSON). I don’t see these methods in any of the new versions.
From their code:
I guess parseJSON is obsolete, therefore the new version (json2) doesn’t even use it anymore. However if your code uses
parseJSONa lot you could just add this piece of code somewhere to make it work again: