json.js 236 B

1234567
  1. // native JSON support.
  2. // developer.mozilla.org/en/JSON
  3. // this will also succeed if you've loaded the JSON2.js polyfill ahead of time
  4. // ... but that should be obvious. :)
  5. Modernizr.addTest('json', !!window.JSON && !!JSON.parse);