Archive for December 15, 2009
Spotted: New version of the jquery-json plugin.
02 years ago
by Onno
in Categorized
http://code.google.com/p/jquery-json/
Changes in Version 2.0
- The code has been re-written. It is now easier to read and follow; less of a mish-mash.
- Support for native JSON has been included. This means that if you are using a browser that supports JSON.stringify, it will be used. Also evalJSONand secureEvalJSON will use JSON.parse if available.
- Changes were made in the JSON output to move in line with the JSON object standard. This means 2.0 is not backwards compatible with the previous versions.
- toJSON now renders like compactJSON used to and compactJSON does not exist anymore. As per the JSON object standard, needless spaces are now removed. This makes it less readable; if someone wants to send me a prettyJSON patch, it will be welcome.
- Differences between output when JSON.stringify is available and when it is not could exist. I am unable to test all strings. Be aware when testing your apps.