[Solved] JSON array conversion into multi dimension array


You can put the array through Array.protoype.map, which replaces each value in the array with whatever the callback function returns. In the callback function you can return an array version of the object.

For example:

var result = yourArray.map(function (item) {
    return [item.text, item.count];
});

More array methods can be found on the MDN docs for Arrays.

0

solved JSON array conversion into multi dimension array