Loop block in Architect not iterating over Data Action JSON array

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.

You’re likely feeding a raw string instead of an array. Wrap your Data Action response in JSON.parse() before passing it to the Loop block. Architect treats strings as single items unless explicitly parsed.