Is there an easy way using filter or parse or something else to convert the array as follows:
var someJsonArray = [ {id: 0, name: "name", property: "value", otherproperties: "othervalues"}, {id: 1, name: "name1", property: "value1", otherproperties: "othervalues1"}, {id: 2, name: "name2", property: "value2", otherproperties: "othervalues2"} ];
into a simple array filled with one attribute of the objects contained in the previous array, like this:
[0, 1, 2]
javascript arrays
Ellone
source share