I have the object msg.data
which holds:
{
"user_id": 1,
"success": "true"
}
I would like to add name
to this list:
{
"user_id": 1,
"success": "true",
"name" : "giri"
}
I have tried:
msg.data.name = "giri";
but when I print out msg.data
, I always get the initial result.
Would someone know the correct way to do this?