let s = '{"hello":"world"}';
let obj = JSON.parse(s);
// You have a JSON string
let myString = "{'foo': 'bar'}"
// You want it to become a JSON object
let myJSONObject = JSON.parse(myString);
// Now you have a JSON object and can access its properties
console.log(myJSONObject.property);