JSON. Again...
Posted: Monday 08 January 2024 23:14
Hi,
Not for the first time I have trouble extracting data from a JSON table. I have this table in a HTTPResponse:
There's only one value in the subtable Prices. How do I extract the value of the field "price"? I tried
but that returns nil.
Peter
Not for the first time I have trouble extracting data from a JSON table. I have this table in a HTTPResponse:
Code: Select all
{
"Prices": [
{
"price": 0.11,
"readingDate": "2024-01-08T22:00:00Z"
}
],
"intervalType": 4,
"average": 0.11,
"fromDate": "2024-01-08T22:00:00Z",
"tillDate": "2024-01-08T22:59:59Z"
}
Code: Select all
item.json.Prices[1].price
Peter