I want to flatten an array of arrays in json data into array of objects. I am giving input and expected output. I am not familiar with some flattening functions in jsonata and that's where I need help.
Input:
[
[
{
"date": "2022-09-22",
"name": "modules/dynatrace",
"count": 60
},
{
"date": "2022-09-22",
"name": "modules/dynatrace/monitors/http-monitors/basic",
"count": 4
}
],
[
{
"date": "2022-09-22",
"name": "modules/splunk/hec-token",
"count": 14
},
{
"date": "2022-09-22",
"name": "modules/aws/lambda/logs_streaming_splunk",
"count": 29
}
]
]
Output:
[
{
"date": "2022-09-22",
"name": "modules/dynatrace",
"count": 60
},
{
"date": "2022-09-22",
"name": "modules/dynatrace/monitors/http-monitors/basic",
"count": 4
},
{
"date": "2022-09-22",
"name": "modules/splunk/hec-token",
"count": 14
},
{
"date": "2022-09-22",
"name": "modules/aws/lambda/logs_streaming_splunk",
"count": 29
}
]