I have the following array:
[
{"Name": "abc", "Age": 10},
{"Name": "xyz", "Age": 12},
{"Name": "def", "Age": 15}
]
I want to create the following array out of it:
["abc","xyz","def"]
ie just take the name field out of each object. Is there an easier way to do it other than through a loop?