5
114
const txt = '{"name":"John", "age":30, "city":"New York"}' const obj = JSON.parse(txt); console.log(obj.name); // John