Here is a json object:
"values": [
{"name": "name1"},
{"name": "name2"},
{"name": "name3"}
]
I want to convert it into this format:
values: ["name1", "name2", "name3"];
Can this conversion be done in AngularJS or any other JavaScript function?