CXone Studio Loop block failing on nested JSON array from external API

We are trying to iterate over a JSON array returned from an external REST call using the Loop block in CXone Studio. The response structure is data.items, which is an array of objects, but the loop fails to initialize when we set the input variable to {{data.items}}. The loop condition is set to index < length, yet the body never executes, and the flow proceeds directly to the failure path. We have verified the JSON payload via the trace log and confirmed the array has three elements. Is there a specific syntax requirement for referencing nested arrays in the Loop input field?

Studio loops don’t handle raw arrays directly. You need to wrap it in an object first. Try setting the input to {{{"items": data.items}}} and iterate over items instead.