I have a JSON data something like:
'1':
{ code: '1',
type: 'car',
},
'2':
{ code: '2',
type: 'bike'
},
...
I dont want to parse 1 and 2 in the parent. Only I need to have
[{code: '1',
type: 'car',
},
{ code: '2',
type: 'bike'
},
...]
How can I do that?
jsonArray = [];
for (var i in JsonData) {
jsonArray.push(jsonData[i]);
}