Loop block fails on JSON array from Data Action

Loop block throws an error when iterating over a JSON array returned by an external Data Action. The payload is a standard list of objects.

[{‘id’: 1}, {‘id’: 2}]

Tried setting the loop variable to the response body directly. Also tried parsing it first. Nothing works. just says the input is not iterable.

Data Actions return strings, not objects. You need to parse it first.

JSON.parse(dataActionOutput)