var a = []; a.push({ "name": "vova", "socket": 1, "state": 1}); a.push({ "name": "sasha", "socket": 2, "state": 1}); alert(a[0].name); alert(a[1].name);