Suppose i have this object
var io={"NAME":"Battery For Alarm Panel","CODE":"POWER MAX","OWN":"ONM"}
which i can access like below
io['NAME'] or io['CODE'] etc.
But if want to create another object then how i can access obj like below code is not working with error Uncaught SyntaxError: Unexpected token [
detailObj=
{
io['NAME']:
{
io['CODE']:
{
io['OWN']:"12"
}
}
}
What changes i need to made in io object to create detailObj