aspjson
aspjson copied to clipboard
Trying to use loadJSON function on collection.
I need to insert some json objects into an existing json list.
So let's say I have a json list inside my main object named Tasks looking like this.
{ "Groups": [ { "id":22, "Status": 1, "Tasks": [] } ] }
And then just want to add the tasks afterwards,
{ "name":"task-1", "id":1 }, { "name":"task-2", "id":2 }
I have tried the appending it into the object from another json object but couldn't get it to work that way. Also tried to use .item("Tasks").loadJSON right on the task list, but that didn't seem to work either.