0 votes
in JavaScript by

JSON.parse function in JSON

1 Answer

0 votes
by

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

...