{"action":"opened","issue":{"url":"https://api.github.com/repos/douglascrockford/JSON-js/issues/76","repository_url":"https://api.github.com/repos/douglascrockford/JSON-js","labels_url":"https://api.github.com/repos/douglascrockford/JSON-js/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/douglascrockford/JSON-js/issues/76/comments","events_url":"https://api.github.com/repos/douglascrockford/JSON-js/issues/76/events","html_url":"https://github.com/douglascrockford/JSON-js/issues/76","id":139447789,"number":76,"title":"I get an error when trying to load JSON in IE in compatibility mode","user":{"login":"malhayek2014","id":6562258,"avatar_url":"https://avatars.githubusercontent.com/u/6562258?v=3","gravatar_id":"","url":"https://api.github.com/users/malhayek2014","html_url":"https://github.com/malhayek2014","followers_url":"https://api.github.com/users/malhayek2014/followers","following_url":"https://api.github.com/users/malhayek2014/following{/other_user}","gists_url":"https://api.github.com/users/malhayek2014/gists{/gist_id}","starred_url":"https://api.github.com/users/malhayek2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malhayek2014/subscriptions","organizations_url":"https://api.github.com/users/malhayek2014/orgs","repos_url":"https://api.github.com/users/malhayek2014/repos","events_url":"https://api.github.com/users/malhayek2014/events{/privacy}","received_events_url":"https://api.github.com/users/malhayek2014/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-09T01:43:14Z","updated_at":"2016-03-09T01:43:14Z","closed_at":null,"body":"I added a new file in my resources folder and called it json2.js Then from the JSON-js project I copied the json2.js file content and pasted it into my json2.js file and included the file resources/json2.js into my app.\r\n\r\nNow, I am trying to use JSON.stringify to convert an object into json string which is giving me the following error\r\n\r\nBut when I use JSON.stringify(records) in IE8 under compatibility mode I get this error\r\n\r\nLine: 314\r\nChar: 21\r\nError: Invalid procedure call or argument\r\nCode: 0\r\n\r\nHere is what I have done\r\n\r\nHTML Markup\r\n\r\n<div id=\"d\">Click Here</div>\r\n<div id=\"s\"></div>\r\n\r\nJavascript code\r\n\r\nvar records = {};\r\n\r\n\r\n$(function(e){\r\n\r\n   records['123'] = {};\r\n   records['456'] = {};\r\n\r\n   records['123']['rec_id'] = 4456;\r\n   records['123']['created_at'] = '';\r\n   records['123']['assigned_at'] = '';\r\n   records['123']['sys_id'] = 1745;\r\n\r\n   records['456']['rec_id'] = 4456;\r\n   records['456']['created_at'] = '';\r\n   records['456']['assigned_at'] = '';\r\n   records['456']['sys_id'] = 1745;\r\n\r\n\r\n   $.each(records, function(callID, record){\r\n\r\n            record['campaign_id'] = '1';\r\n            record['offset'] = 123;\r\n            record['attempt'] = '7';\r\n            record['phone'] = '800-123-4567';\r\n            record['identity'] = 123;\r\n            record['code'] = 'Some Code';\r\n            record['notes'] = 'Some notes';\r\n            record['completed_by'] = 'Mike A';\r\n            record['name'] = null;\r\n\r\n            record['completed_at'] = \"\";\r\n\r\n   });\r\n\r\n\r\n   $('#d').click(function(e){\r\n        $('#s').text(  JSON.stringify(records)  );\r\n   });\r\n\r\n});\r\n\r\nthe above code can be found in the following jFiddle https://jsfiddle.net/4632wf5n/\r\n\r\nWhat can I do to convert my object into json string in IE8 with comparability mode?\r\n"}}