I have the following object structure:
var obj = {
"51523":{
"firstname":"Tiki",
"lastname":"Pur",
"age":25
},
"98741":{
"firstname":"Nagasti",
"lastname":"Bagamba",
"age":20
}
}
First - the reason behind this structure. I want to be able to access objects inside obj easily, like so:
obj["51523"].age = 25
is there a way of adding a new object to obj?