{"id":786,"date":"2022-08-30T15:07:09","date_gmt":"2022-08-30T15:07:09","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/0x800a1391-javascript-runtime-error-json-is-undefined-in-ie-10-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:07:09","modified_gmt":"2022-08-30T15:07:09","slug":"0x800a1391-javascript-runtime-error-json-is-undefined-in-ie-10-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/0x800a1391-javascript-runtime-error-json-is-undefined-in-ie-10-collection-of-common-programming-errors\/","title":{"rendered":"0x800a1391 &#8211; JavaScript runtime error: &#39;JSON&#39; is undefined in IE 10-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m using IE 10 Compatibility on Windows 8, I&#8217;m getting this error while running the WebApp in Debug mode(VS 2012). 0x800a1391 &#8211; JavaScript runtime error: &#8216;JSON&#8217; is undefined Code below<\/p>\n<pre><code>var data = JSON.stringify(GetUserDetails());\n\nfunction GetUserDetails() {\n    var userData = {};\n    userData.userName = $('#txtUserName').val();\n    userData.password = $('#txtPassword').val();\n    return userData;\n}\n<\/code><\/pre>\n<p>Also , the strange fact is the same code hosted in IIS 8 runs fine in IE 10 Browser. Any inputs?<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 22:44:33. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using IE 10 Compatibility on Windows 8, I&#8217;m getting this error while running the WebApp in Debug mode(VS 2012). 0x800a1391 &#8211; JavaScript runtime error: &#8216;JSON&#8217; is undefined Code below var data = JSON.stringify(GetUserDetails()); function GetUserDetails() { var userData = {}; userData.userName = $(&#8216;#txtUserName&#8217;).val(); userData.password = $(&#8216;#txtPassword&#8217;).val(); return userData; } Also , the strange fact [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-786","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=786"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/786\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}