How do I get the Loop block to actually parse a JSON array returned from a Data Action?
I’ve got a GET request hitting our internal API that returns a list of customer orders. The response is a standard JSON array like [ {"id": 123, "status": "pending"}, {"id": 124, "status": "shipped"} ].
When I map the response body to the Loop input, the loop count stays at 1. It seems to be treating the whole array string as a single item instead of iterating through each object. I’ve tried mapping the raw body, and I’ve also tried parsing it into a JSON object first using a Set Variable block, but the behavior is identical.
Here’s the JSON structure coming back:
[
{"orderId": "A1", "total": 50.00},
{"orderId": "A2", "total": 75.50}
]
The Loop block documentation says it supports arrays, but it feels like it’s choking on the format. Am I missing a step to convert the Data Action output into a format the Loop block recognizes? I’ve checked the debug logs and the variable definitely holds the array data. Just can’t get past the iteration step.