Hi friends, i already have json object..like this,
updates={
mainUpdates:[{id:'1', inner:[{mid:'11',sub_domain:'a'},{mid:'12',sub_domain:'b'}]},
{id:'2', inner:[{mid:'21', sub_domain:'c'},{mid:'22',sub_domain:'d'}]}
],
msgCount:'2'
}
now i want add new values with its name(property) dynamically to the existing my json object. using javascrit... i want the exactly answer is look like
updates={
mainUpdates:[{id:'1', inner:[{mid:'11',sub_domain:'a'},{mid:'12',sub_domain:'b'}]},
{id:'2', inner:[{mid:'21',sub_domain:'c'},{mid:'22',sub_domain:'d'}]},
{id:'3', inner:[{mid:'31',sub_domain:'e'},{mid:'22', sub_domain:'f'}]}
],
msgCount:'3'
}
how i do