0๐
โ
var t = [
{
"id":"1011",
"name":"Popular Music"
},
{
"id":"1012",
"name":"Hip Hop & R&B"
},
{
"id":"1014",
"name":"House Music"
},
{
"id":"1013",
"name":"Bhangra & Bollywood"
}
].map(function (a) { return a.id; });
console.log(t);
Hopes this is the one you are looking for.
Source:stackexchange.com