I am trying to convert an object to json string in IE 8 comparability mode.
Here is what I have done. 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.
Now, I am trying to use JSON.stringify to convert an object into json string which is giving me the following error
But when I use JSON.stringify(records) in IE8 under compatibility mode I get this error
I am trying to convert an object to json string in IE 8 comparability mode.
Here is what I have done. I added a new file in my resources folder and called it
json2.js
Then from the JSON-js project I copied thejson2.js
file content and pasted it into myjson2.js
file and included the fileresources/json2.js
into my app.Now, I am trying to use
JSON.stringify
to convert an object into json string which is giving me the following errorBut when I use
JSON.stringify(records)
in IE8 under compatibility mode I get this errorHere is what I have done
HTML Markup
Javascript code
the above code can be found in the following jFiddle https://jsfiddle.net/4632wf5n/
What can I do to convert my object into json string in IE8 with comparability mode?