I am working with an object msg.data
that contains the following information:
{
"user_id": 1,
"success": "true"
}
Now, I want to add a name
field to this list:
{
"user_id": 1,
"success": "true",
"name" : "giri"
}
I have attempted the following code:
msg.data.name = "giri";
However, no matter what I try, the output when printing msg.data
remains unchanged.
If anyone has insight on how to properly accomplish this task, I would greatly appreciate it.