I am developing Android application using Titanium. I want to delete and push some new data in to json object.I used following code:
var jsonfeed = this.responseText;
var jsontext = JSON.parse(jsonfeed);
My json object give below:
{"feeds":
[
{"username":"abc","user":"abc","feed":{"description":"dss","id":660,"user_id":1}},
{"username":"bcd","user":"bcd","feed":{"description":"dddd","id":659,"user_id":1}}
]
}
I want to delete jsontext.feeds[0]. I tried Splice like jsontext.feeds.splice(0,1) it returns correct value but it actually not deleting any value from jsontext.Is there any way to delete data from json object or any suggestion about my code.Thank you.