31 January 2012

How easy to parse JSON in JS

It is that easy!


var myObj = eval("obj={'name':'ali', 'age':'20'}");

document.write (myObj.name + ' ' + myObj.age);

Post a Comment