I am using json_parse from
I need to store 3 pet names in "string" format, parse them into array and later read one by one
for example like that:
pets = '{{"name":"jack"},{"name":"john"},{name:"joe"}}';
var arr = JSON.parse(pets);
alert(arr[0].name);
But it doesn't work.
Also I would need to add entry to array(proably with push) but I am having problems too.
Someone has idea how to do it?