AFAIK this is JSONPath, so look for tutorials for that.
Can anyone help me with this…
It’s nais that you can read and loop the array from an JSON file.
But can anyone tell me how I can add or modify a Array in the JSON.
I tried everything.
I have a JSON structure like this:
{
"residents": [
{
"homey_id": "Parson A",
"name": "A",
"presence": "home",
"activity": "awake"
},
{
"homey_id": "Person B",
"name": "B",
"presence": "home",
"activity": "sleeping"
}
],
...