Description:
I am using AWS Step Functions and need to process an input JSON that looks like this:
{
"id": "123456",
"bubble": [
{
"type": "flex",
"altText": "001"
},
{
"type": "flex",
"altText": "002"
}
]
}
My goal is to iterate over the bubble
array while keeping the id
field in each mapped output. The expected results should be:
1.
{
"id": "123456",
"bubble": {
"type": "flex",
"altText": "001"
}
}
{
"id": "123456",
"bubble": {
"type": "flex",
"altText": "002"
}
}
How can I achieve this transformation using AWS Step Functions and Map
state? Any guidance on the state machine definition or JSONPath would be appreciated.