Studio Loop block failing to parse JSON array from Data Action

Got a Data Action calling an internal API. Returns a 200 OK with a JSON payload containing an array of objects.

Response looks like this:

{
“results”: [
{“id”: “123”, “name”: “Test”},
{“id”: “456”, “name”: “Prod”}
]
}

Trying to iterate over results in a Studio Loop block. Set the source to the Data Action output variable.

The loop doesn’t trigger. No errors in the debug log, just skips straight to the end.

Checked the variable type in the debug window. It shows as string instead of array.

Tried adding a Snippet action before the loop to parse the JSON string using eval but that feels hacky and Studio blocks it for security.

Is there a way to force the Data Action to return the array directly instead of wrapping it in the response envelope? Or do I need to map the specific array field in the Data Action configuration?

Currently stuck on the mapping step in the Data Action. Not sure if I’m missing a configuration flag for array handling.