string to convert json

Converting a string to JSON object

var jsontext = '{"firstname":"joseph","surname":"royal","phone":["444-0020","333-0652"]}';
var contact = JSON.parse(jsontext);
string to convert json string to convert json Reviewed by Bhaumik Patel on 9:52 PM Rating: 5