Is JSON.stringify() supported by IE 8?

To answer the question in the title directly, yes IE8 supports JSON.stringify() natively.

IE8 is the first version of IE to get this support, and the functionality is explained in detail by the dev team here:
http://blogs.msdn.com/b/ie/archive/2008/09/10/native-json-in-ie8.aspx

The answer the second part of the question, yes you would need to include alternate functionality for IE6/IE7. Something like Modernizr can make it easy to check this.

Also note if the user is in Compatibility View in IE8, the JSON object will not be available.

Leave a Comment