JSON.stringify() supported by IE 8?

Posted by user246114 on Stack Overflow See other posts from Stack Overflow or by user246114
Published on 2010-07-24T20:59:23Z Indexed on 2012/06/08 10:40 UTC
Read the original article Hit count: 153

Filed under:

I need to use:

JSON.stringify()

which should be supported by chrome, safari, and FF (I think). I think IE8 also has support for the JSON object. I think IE7 and 6 do not, so I'm doing this:

<!--[if lt IE 8]>
    <script src="http://www.json.org/json2.js"></script>
<![endif]-->

so, I think this will import the external javascript only if IE6 & 7. I looked at the url where the script is hosted, they are including only if the IE version is less than 9:

http://code.google.com/p/html5shiv/
<!--[if lt IE 9]>
    <script src="http://www.json.org/json2.js"></script>
<![endif]-->

so should I be including this for IE 8 too?

Thanks

--------------- Pointed script source to json parser js ---------------

© Stack Overflow or respective owner

Related posts about JavaScript