I get the following error in IE 9 SCRIPT5009: \'JSON\' is undefined only when in compatability mode. the line causing this error is
SCRIPT5009: \'JSON\' is undefined
JSON.string
Yes, JSON is defined natively in modern browsers, but not in IE. You need to import a library. For example, http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js