var obj = { *!* foo : [{ 'a' : 1, 'b' : 2 }] */!* }; var json = JSON.parse(JSON.stringify(obj)) ; alert('a : '+json.foo[0].a+'\nb : '+json.foo[0].b);