I'm trying to go from this:
{
"fruits": [
{
"name": "Apple",
"price": 35
},
{
"name": "Banana",
"price": 12
},
{
"name": "Grapes",
"price": 45
},
{
"name": "Pineapple",
"price": 200
}
]
}
To this:
[ "Apple", "Banana", "Grapes", "Pineapple" ]
Without looping through the first array. Any ideas on how to do that? Thanks!