For example, say I have the following .json blob:
{
"timestamp": 1234567890,
"report": "Age Report",
"results": [
{ "name": "John", "age": 43, "city": "TownA" },
{ "name": "Jane", "age": 10, "city": "TownB" }
]
}
I want to change John's age to 44, and then return the entire blob. I'm looking for the following output:
{
"timestamp": 1234567890,
"report": "Age Report",
"results": [
{ "name": "John", "age": 44, "city": "TownA" },
{ "name": "Joe", "age": 10, "city": "TownB" }
]
}
Additionally, if "age" is not there, I would like to add it.
Thanks!