I am having the json like this:
{
json{
"81":[
{
"name":"",
"id":""
},
{
"name":"",
"id":""
}
]
}
}
I am getting this json dynamically and i am storing this json in adlist. I want to insert the element into the array in the third position. i tried like this:
var temp={"name":"","id":""};
adlist.json[81].splice(2,0,temp);
But it is not adding the string correctly.