The 'jquery.json' module has been deprecated, and we plan to remove it in MW 1.25. You can replace it with the 'json' module.
* In your extension or gadget's ResourceLoader dependencies, change 'jquery.json' to 'json' * Use JSON.stringify instead of $.toJSON * Use JSON.parse instead of $.parseJSON (the latter is actually part of jQuery proper, and not being removed currently, but this allows you to be consistent and us the standard ECMAScript 5 JSON API for both directions).
There are some less commonly used JSON APIs in jquery.json. See the code (https://git.wikimedia.org/blob/mediawiki%2Fcore.git/5ca4bea3d380911c458659e6...), and feel free to ask.
The benefit is that users with modern browsers (which have JSON built-in), will not have to download any JSON implementation (currently, they download jquery.json). Older browsers will still work, but they will download the JSON implementation.
Thanks,
Matt Flaschen