json parse a variable jquery code example
Example: json_decode jquery
var obj = jQuery.parseJSON( '{ "name": "John" }' );
alert( obj.name === "John" );
var obj = jQuery.parseJSON( '{ "name": "John" }' );
alert( obj.name === "John" );