This is part of ECMAScript 5 and is an object with an internal JSON class that contains the appropriate methods ( stringifyand parse) for processing JSON data.
Use json2 library in browsers where JSON is not implemented.
You can check it as follows:
if( Object.prototype.toString.call( window.JSON ) !== '[object JSON]' ) {
}
source
share