JSON.parse function in JSON
var myJSONvar = '{"name":"Adam", "age":21, "city":"Gurgaon"}';var myObjparse = JSON.parse(myJSON);document.getElementById("Jsondemo").innerHTML = myObjparse.name;