Internet Explorer 8 includes a native JSON object that complies with the JSON support that is described in the ES3.1 Proposal Working Draft. Some webpages detect the native JSON object, and then use it in a non-standard way. This usage typically causes a script error and breaks the handling of AJAX requests. The following code example shows the wrong way to use the JSON object.
if(!window.JSON) JSON = myJSON; JSON.encode(obj); // Not part of the standard
Instead, the following code example shows a good way to use the JSON object.
JSON = myJSON; JSON.encode(obj);