JSON Object Undefined in Internet Explorer 8

JSON object undefined in Internet Explorer 8

Make sure you're actually in IE 8 mode by using the preferred method, a standards doctype...

<!DOCTYPE html>

...or the undesired method, the X-UA-Compatible meta tag/header...

<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />

See Defining Document Compatibility for more information.

IE 8 Doesn't Recognize JSON, Options?

Use https://github.com/douglascrockford/JSON-js for cross browser implementation of JSON and all its functions

JSON' is undefined error in IE only

Use json2 for a consistent cross browser implementation.

https://github.com/douglascrockford/JSON-js

JSON' is undefined error in JavaScript in Internet Explorer

Maybe it is not what you are looking for, but I had a similar problem and i solved it including JSON 2 to my application:

https://github.com/douglascrockford/JSON-js

Other browsers natively implements JSON but IE < 8 (also IE 8 compatibility mode) does not, that's why you need to include it.

Here is a related question: JSON on IE6 (IE7)

UPDATE

the JSON parser has been updated so you should use the new one: http://bestiejs.github.io/json3/

IE8 native JSON.parse bug causes stack overflow

This was just patched.
http://support.microsoft.com/kb/976662

http://msdn.microsoft.com/en-us/library/cc836466(VS.85).aspx

JSON' and 'jQuery' still undefined in Internet Explorer 7 and 8

jQuery 2.0 drops support for IE 6, 7 and 8, and is only meant for when you know you don't need to support those browsers. For most people the correct solution is to use jQuery 1.x instead, which is still officially supported:

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>


Related Topics



Leave a reply



Submit