aboutsummaryrefslogtreecommitdiffstats
path: root/resources/lib/json2
Commit message (Collapse)AuthorAgeFilesLines
* Remove JSON polyfill, deprecate 'json' modulePeter Hedenskog2016-11-221-519/+0
| | | | | | | | | | All A-graded browsers now supports JSON so skip the JSON polyfill. Krinkle investigated the current status for 3 months on Wikimedia traffic (T141344#2784065) with support being nearly 100%. Bug: T141344 Change-Id: I8280faf1cbcd876ead2dafae4347b7d46e3e2acb
* Update json2 to revision 2015-05-03paladox2015-06-071-48/+78
| | | | | | | | | | | | Project link * https://github.com/douglascrockford/JSON-js File link * https://github.com/douglascrockford/JSON-js/blob/c98948ae19/json2.js Change-Id: Ifeb41140c13718162d1c0bd7a5a815acaf7bfd56
* Add json2.js polyfill (v2014-02-04; with module skip function)Timo Tijhof2014-06-251-0/+489
Source from https://github.com/douglascrockford/JSON-js/blob/3d7767b/json2.js * Deprecate jquery.json which is a little dated and less efficient because it always downloads the entire polyfill to the client even if it isn't needed. We also can't add a skip function to jquery.json because it exposes a different interface ($.toJSON instead of JSON.stringify). * Update 'mediawiki.inspect' to use 'json' instead. * Update 'jquery.jStorage' to use 'json' instead (doesn't need a change to its code as it looks for either JSON.stringify or $.toJSON by design). Change-Id: I8978be3491b08fbbfd83f1306e816b1b20f16161