So there is this input array
[
{
"time": 1591653600,
"level": 100
},
{
"time": 1591657200,
"level": 110
}
]
To each array content there should be appended { "tag" : "east" }, so that we get an array of arrays and it looks like
[
[
{
"time": 1591653600,
"level": 100
},
{
"tag": "east"
}
],
[
{
"time": 1591657200,
"level": 110
},
{
"tag": "east"
}
]
]
Since the real object contains much more key/value pairs than time and level I need a general solution.
I've tried
[
[
$,
{
"tag": "east"
}
]
]
But this adds the tag only once in the end and doesn't create a real array of arrays.
You can try at https://try.jsonata.org/Dfz2Antml