JSON.parse

by jasdeepkhalsa

JavaScript

var str = '{"name": "bob", "height": 4, "weight": 145}';
var json = JSON.parse(str);
console.log(json);