CXone Studio Data Action returns undefined on specific JSON path

Is there a specific syntax for nested objects in Data Action output mappings that I’m missing? I’m calling a custom REST endpoint via and the response body looks fine in the debug log, but the mapped output variable is always undefined. The JSON path is data.items[0].name and the response is 200 OK with valid JSON. Tried data.items.0.name too, no luck. Here’s the mapping config:

{
 "output": {
 "customerName": "$.data.items[0].name"
 }
}

Check the array index handling. sometimes chokes on bracket notation. Try dot notation instead.

Use $.data.items.0.name in the mapping. If that fails, verify the JSON is actually an array and not an object with numeric keys. The debug log might be misleading you on the structure.