Javascript : JSON
Convert JSON String To Javascript Object
var str = '{"name":"Rob", "age":38, "city":"Los Angeles"}';
var obj = JSON.parse(str);
Convert Javascript Object To JSON String
var obj = {name: "Rob", age: 38, city: "Los Angeles"};
var str = JSON.stringify(obj);