how to change the json string to jsonobject code example
Example: change to json string
var obj =
{ name: "John", today: new Date(), city : "New York" };
var myJSON = JSON.stringify(obj);
document.getElementById("demo").innerHTML = myJSON;