| Use of JSON.parse function in JSON
Below is the simplest example for using JSON.parse
var myJSONvar = '{"name":"Adam", "age":21, "city":"Gurgaon"}';
var myObjparse = JSON.parse(myJSON);
document.getElementById("Jsondemo").innerHTML = myObjparse.name; | | |