The GET request to our external order service returns a 200 OK, and the payload looks clean in the debug logs. The issue is mapping the JSON response back to Architect variables. We need to pull the first item from a nested array called shippingAddresses, but the mapping UI keeps rejecting the path.
Here’s the raw response structure we’re getting:
{
"orderId": "99281",
"status": "shipped",
"shippingAddresses": [
{
"street": "123 Main St",
"city": "Berlin"
}
]
}
I’ve tried mapping $.shippingAddresses[0].city and $.shippingAddresses.0.city in the Data Action output configuration. Both result in a null value when the flow runs. The documentation mentions using a JSONata expression, but the field type dropdown doesn’t seem to support it for array indices. Is there a specific syntax for indexing into arrays within the Data Action mapper, or do we need to flatten this in a Scripting node first?