revert json stringify code example
Example 1: json opposite of stringify
let s = '{"hello":"world"}';
let obj = JSON.parse(s);
Example 2: js reverse JSON.stringify
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);
}