Hi,
here is a sample output I receive (unconverted):
{
"object": "list",
"data": [
{
"start_timestamp": 1663912800000,
"end_timestamp": 1663916400000,
"marketprice": 415.13,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663916400000,
"end_timestamp": 1663920000000,
"marketprice": 344.95,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663920000000,
"end_timestamp": 1663923600000,
"marketprice": 365.18,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663923600000,
"end_timestamp": 1663927200000,
"marketprice": 354.64,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663927200000,
"end_timestamp": 1663930800000,
"marketprice": 317.72,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663930800000,
"end_timestamp": 1663934400000,
"marketprice": 301.71,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663934400000,
"end_timestamp": 1663938000000,
"marketprice": 305.89,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663938000000,
"end_timestamp": 1663941600000,
"marketprice": 321.9,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663941600000,
"end_timestamp": 1663945200000,
"marketprice": 375,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663945200000,
"end_timestamp": 1663948800000,
"marketprice": 422.09,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663948800000,
"end_timestamp": 1663952400000,
"marketprice": 460.13,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663952400000,
"end_timestamp": 1663956000000,
"marketprice": 420.1,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663956000000,
"end_timestamp": 1663959600000,
"marketprice": 384.94,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663959600000,
"end_timestamp": 1663963200000,
"marketprice": 385.43,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663963200000,
"end_timestamp": 1663966800000,
"marketprice": 369.95,
"unit": "Eur/MWh"
},
{
"start_timestamp": 1663966800000,
"end_timestamp": 1663970400000,
"marketprice": 369.91,
"unit": "Eur/MWh"
}
],
"url": "/at/v1/marketdata"
}
At the end, I need to have all values from "marketprice" in the received order in the POST curl.
So the question is how I would place these marketprice values into in the json.
Thanks