I'm trying to update the status of User 2 to DONE
I got this JSON array
[
{
"id":"YWauEwCUIe",
"name":"User 1",
"status":"DONE"
},
{
"id":"JgwCjgvU5b",
"name":"User 2",
"status":"WAIT"
}
]
I tried with this code, but it not going to work.
mUsers[0][status] = "DONE";
mUsers[0]["status"] = "DONE";instead? It would help if you could provide a minimal reproducible example rather than just a line of code, and explain exactly what happens with what you've tried, rather than just "it not going to work".['status']and now try["status"]and it worked. BTW Thanks.chartype, whereas double quotes are forstring. That's why double quotes work and single quotes don't.