
static.js.vendor.modernizr.feature-detects.json.js Maven / Gradle / Ivy
The newest version!
/*!
{
"name": "JSON",
"property": "json",
"caniuse": "json",
"notes": [{
"name": "MDN documentation",
"href": "http://developer.mozilla.org/en/JSON"
}],
"polyfills": ["json2"]
}
!*/
/* DOC
Detects native support for JSON handling functions.
*/
define(['Modernizr'], function(Modernizr) {
// this will also succeed if you've loaded the JSON2.js polyfill ahead of time
// ... but that should be obvious. :)
Modernizr.addTest('json', 'JSON' in window && 'parse' in JSON && 'stringify' in JSON);
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy