/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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