I am getting data back which includes nested json objects and would like to make a new array containing those json objects. So if I am getting
[
{
"number": 1,
"products": [
{
"fruit": "apple",
"meat": "chicken"
},
{
"fruit": "orange",
"meat": "pork"
}
]
}
]
I would like the new array to be
[
{
"fruit": "apple",
"meat": "chicken"
},
{
"fruit": "orange",
"meat": "pork"
}
]
data[0].products
. Can the data be more complicated than this? – Barmar Aug 3 at 21:10