Summary
The user is trying to extract all ‘id’ fields from a JSON response but is facing issues with the extraction process.
Question
Hi folks, another record selector question,
My response:
{
“id”: “661006f9-bcf9-a0e9-5436-9473880edb73”,
“type”: “merchant_payment”,
“state”: “completed”,
“request_id”: “661006f9-5862-aa04-9551-79ee8f702747”,
“created_at”: “2024-04-05T14:13:13.487596Z”,
“updated_at”: “2024-04-05T22:02:10.922198Z”,
“completed_at”: “2024-04-05T22:02:10.910811Z”,
“legs”: [
{
“leg_id”: “661006f9-bcf9-a0e9-1234-9473880edb73”,
“account_id”: “bc4c6442-fdcf-4687-a918-fe867d375dd9”,
“amount”: 13.93,
“fee”: 0.13,
“currency”: “EUR”,
“description”: “Merchant payment”,
“balance”: 4182.29
}
]
},
{
“id”: “661006f4-d827-aa76-2134-5ceb5d6496de”,
“type”: “merchant_payment”,
“state”: “completed”,
“request_id”: “661006f4-5fa7-ad94-a923-1470d4efcb3a”,
“created_at”: “2024-04-05T14:13:08.884584Z”,
“updated_at”: “2024-04-05T22:02:11.050078Z”,
“completed_at”: “2024-04-05T22:02:11.037758Z”,
“legs”: [
{
“leg_id”: “661006f4-d827-aa76-1234-5ceb5d6496de”,
“account_id”: “bc4c6442-fdcf-4687-a918-fe867d375dd9”,
“amount”: 31.34,
“fee”: 0.27,
“currency”: “EUR”,
“description”: “Merchant payment”,
“balance”: 4278.04
}
]
}
]
Cant extract only id using * , id
But i can get legs by using * , legs , *
How can i extract all id from above response,
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.