(of course if I skip the JSON parser and do this all tailored myself, I can make it work... but I wanted to used the power of the pre-built JSON code that I can call).
Code: Select all
Debug.Print json("data")("newValue")
Same for the matching "timestamp"
Code: Select all
Debug.Print json("timeline")
Code: Select all
[
{
"data": {
"id": 257,
"newValue": 345,
"oldValue": 338,
"property": "value"
},
"id": 930809,
"objects": [
{
"id": 257,
"type": "device"
}
],
"sourceId": 0,
"sourceType": "system",
"timestamp": 1718632500,
"type": "DevicePropertyUpdatedEvent"
},
{
"data": {
"id": 257,
"newValue": 338,
"oldValue": 344,
"property": "value"
},
"id": 930801,
"objects": [
{
"id": 257,
"type": "device"
}
],
"sourceId": 0,
"sourceType": "system",
"timestamp": 1718632440,
"type": "DevicePropertyUpdatedEvent"
}
]