Loop block index variable scope in CXone Studio

Got a Data Action returning a flat JSON array from an external API. Trying to iterate through it in the Architect canvas to update a custom attribute for each item. The Loop block works fine for the first pass, but the index variable seems to reset or lose context when I try to reference it in a subsequent Set Variable block outside the loop body.

The payload looks like this:

[
 { "id": "101", "status": "active" },
 { "id": "102", "status": "inactive" }
]

I’m using the Loop block to process each object. Inside the loop, I can access loop.index and loop.item just fine. But when I try to move the final processed list to a flow variable after the loop completes, it’s null.

Is the scope limited to the loop body? I’ve tried setting a temporary variable inside the loop and appending, but it feels clunky. Is there a cleaner way to map the loop output directly to a flow variable without manual accumulation? Or am I missing a specific setting on the Loop block configuration?