Architect Data Action output undefined despite valid JSON path

The success output for my Data Action keeps coming back as undefined even though the JSON path looks correct. Here’s the mapping config:

{
 "output": {
 "result": "$.data.items[0].id"
 }
}

The raw response definitely has that structure. Am I missing a step in the success block?