Last modified: 2011-04-23 20:37:53 UTC
There are several implementations out there. The "most popular" one (recommended by John Resig from jQuery and promoted on http://www.json.org/ ) is D. Crockgord's implementation: https://github.com/douglascrockford/JSON-js The main script is at [1]. Thanks to janpaul123 for the idea to add this to core. This will make it very easy to send a nested object of information to core and also maintain types (ie. boolean and numbers). Both of which are hard when posting them directly as parameters in the request. It should be defined as extending the jQuery root object (not a prototype) as $.toJSON -- Krinkle [1] https://github.com/douglascrockford/JSON-js/blob/master/json2.js
Done by Trevor in r86657.