Object is:
people[resident1:[
"name" : "valueForName",
"address" : "valueForAddress",
"city" : "valueForCity"
],
resident2:[
"name" : "valueForName",
"address" : "valueForAddress",
"city" : "valueForCity"
]]
People has more than one residents, I want a JSON that has following structure:
"residents" :{
"valueForName1":"valueForCity1",
"valueForName2":"valueForCity2"
}
Can anyone help? I am new to javascript. Thank you!