summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/json.js
blob: af58064254e86f51d0218fea784604bd86e827d9 (plain)
1
2
3
4
5
6
7
// native JSON support.
// developer.mozilla.org/en/JSON

// this will also succeed if you've loaded the JSON2.js polyfill ahead of time
//   ... but that should be obvious. :)

Modernizr.addTest('json', !!window.JSON && !!JSON.parse);