var text = '{ "employees" : [' +
'{ "id": 999, "username": "Batman" } ]}';
obj = JSON.parse(text);
var id = obj.employees[0].id;
Question is, how to access as in example above id, from javascript object? In example above it has "name" to gain access to id, which is employees. But real life example below i don't have "name" to use to gain id value.
var text = '{ "" : [' +
'{ "id": 999, "username": "Batman" } ]}';
obj = JSON.parse(text);
var id = obj.**WHAT TO PUT HERE TO ACCESS-->**.id;