I have an array of objects that looks like this:
[{
"id": 1,
"name": "Name 1",
"created": "2022-04-07T18:40:11Z",
"updated": "2022-04-07T18:40:19Z",
"deleted": null,
"accounts": [
"89084",
"34342"
]
},
{
"id": 2,
"name": "Name 2",
"created": "2022-01-07T18:40:11Z",
"updated": "2022-01-07T18:40:19Z",
"deleted": null,
"accounts": [
"99084",
"38342"
]
}
]
How do I store all accounts fields into a single array. Notice accounts is an array inside an object inside an array of objects.