stegus64
02/10/2026, 8:16 AM{
"level1": [
{
"id": 1,
"level2": [
{
"key": "comment",
"value": "Hello"
},
{
"key": "Amount",
"value": "11"
}
]
},
{
"id": 2,
"level2": [
{
"key": "comment",
"value": "Good"
},
{
"key": "Amount",
"value": "22"
}
]
}
]
}
I want to save this to a sql table with the columns id, key, value.
So, my goal with the jmespath is to create a structure like this:
[
{
"id": 1,
"key": "comment",
"value": "Hello"
},
{
"id": 1,
"key": "Amount",
"value": "11"
},
{
"id": 2,
"key": "comment",
"value": "Good"
},
{
"id": 2,
"key": "Amount",
"value": "22"
}
]
I am not able to get this to work.
Do you have a good solution?flarco
02/10/2026, 1:13 PMexplode will be available next release (EOW). You'll be able to do:
yaml
response:
...
jmespath: "level1[]"
processors:
- expression: explode(record, "level2")
output: record
so, technically 1 record becomes many. But processors logic will handle that, and batch properly into the output datastream.
https://cdn.discordapp.com/attachments/1470695021601882164/1470769709942046917/image.png?ex=698c8088&is=698b2f08&hm=55861b437613b2c9f1c866e946ab03bc93f704246cd656471bad7804c2c3aaef&stegus64
02/10/2026, 1:17 PMflarco
02/10/2026, 1:19 PMjq(record, "jq-expr") ?stegus64
02/10/2026, 1:22 PMflarco
02/10/2026, 1:24 PMstegus64
02/10/2026, 1:27 PMflarco
02/10/2026, 1:28 PMstegus64
02/10/2026, 1:29 PMflarco
02/10/2026, 1:30 PM