Return to Snippet

Revision: 28479
at July 8, 2010 17:30 by omerta83


Initial Code
var obj = jQuery.parseJSON(' 
    {"name":"Larry King", 
     "age": "5000" 
    }');  
alert( obj.name === "Larry King" ); //true  
alert (obj.age  === "50"); //false  
alert (obj.age  === "5000"); //true

Initial URL

                                

Initial Description

                                

Initial Title
How to convert JSON string into a JavaScript Object

Initial Tags
javascript, jquery

Initial Language
JavaScript