JSON_DECODE JQuery
var obj = jQuery.parseJSON( '{ "name": "John" }' );
alert( obj.name === "John" );
Sergiu The Man
var obj = jQuery.parseJSON( '{ "name": "John" }' );
alert( obj.name === "John" );
var jsonPerson = '{"first_name":"billy", "age":23}';
var personObject = JSON.parse(jsonPerson); //parse json string into JS object
JSON.parse(jsonToDecode)
<?php
$json = '{"a":1,"b":2,"c":3,"d":4,"e":5}';
var_dump(json_decode($json));
var_dump(json_decode($json, true));
?>