I tried to delete the key ts
in every machine but always I have the same error keyerror 0.
My JSON:
{
"timestamp": "2023-01-03 10:30:39",
"Essais": {
"machine": {
"temperature": [{ "ts": 1671781231183, "value": "100" }],
"humidity": [{ "ts": 1671781231183, "value": "40" }]
},
"machine2": {
"temperature": [{ "ts": 1671781231183, "value": "100" }],
"humidity": [{ "ts": 1671781231183, "value": "40" }]
}
}
}
How can I delete the key ts
and its value in all the JSON file?