Hey there, I have a string that looks like this:
{"Fruit":"Meat",
"Vegetable":[
{"Name":"Author1","Date":"12"},
{"Name":"Author2","Date":"2"},
{"Name":"Author3","Date":"14"}
.
.
.
{"Name": "AuthorN", "Date":"18"}
]
}
This string is connected to a JSON/GetNames service.
Can anyone share a JavaScript function that can extract and return all the "Name" values nested under "Vegetable"?