Ron Harlev
Ron Harlev

Reputation: 16723

JSON is undefined when using jqGrid 3.5 in IE7

I am trying to switch from jqGrid 3.4 to 3.5. On the HTML page I'm using JSON.parse and after changing the jqGrid reference to the new version I get "JSON is undefined". This is happening in IE7. I had the impression that JSON is part of Javascript in IE.

Adding an explicit reference to a JSON implementation solves the probolem of course. But I don't want to add it if it is redundant.

Upvotes: 1

Views: 6795

Answers (1)

Nate
Nate

Reputation: 19030

IE8 has a native JSON object; I don’t think IE7 does. In any case, using the JSON.org implementation or an equivalent buys you a lot more compatibility, especially if you must continue to support older browsers.

Upvotes: 3

Related Questions