creating nested json
yosiasz opened this issue · 1 comments
yosiasz commented
hello
for the following json
{
"realtime_start": "2024-08-14",
"realtime_end": "2024-08-14",
"date": "2024-02-01",
"value": "311.054"
},
{
"realtime_start": "2024-08-14",
"realtime_end": "2024-08-14",
"date": "2024-03-01",
"value": "312.230"
}
I want to generate
{
"194701": {
"date": "1947-01-01",
"value": "21.48"
},
"194701": {
"date": "1947-01-01",
"value": "21.48"
}
}
what would be the jsonata way of doing this please?