How to get all the names from JSON object as a string array
{
"status_code": 200,
"status": "success",
"data": [
{
"id": 1,
"name": "Ajay"
},
{
"id": 2,
"name": "Balaji"
},
{
"id": 3,
"name": "Vinoth"
}
]
}
Expected Output :
["Ajay","Balaji","Vinoth"]