I have array of JSON objects as follows:
var out = [{
1: {
name: 'Name 1',
id: 'one'
}
}, {
2: {
name: 'Name 2',
id: 'two'
}
}];
I am trying to convert this to 2-D array as:
var out = [[1,object],[2,object]];
I tried to use json.encode(out) , any methods or approaches for converting this?