Reverse of JSON.stringify? Reverse of JSON.stringify? json json

Reverse of JSON.stringify?


You need to JSON.parse() the string.

var str = '{"hello":"world"}';try {  var obj = JSON.parse(str); // this is how you parse a string into JSON   document.body.innerHTML += obj.hello;} catch (ex) {  console.error(ex);}