I am getting the JSON object from an API in this format:
[{"Id":1,"Name":"A","ParentId":0},
{"Id":2,"Name":"B","ParentId":1},
{"Id":3,"Name":"C","ParentId":2}]
I want to convert it into this format
['Mike', null, 'The President'],
['Alice', 'Mike', null],
['Bob', 'Jim', 'Bob Sponge'],
['Carol', 'Bob', null]
So I can pass it to a function in google api like this
var data = google.visualization.arrayToDataTable(<<DATA>>);
How do I do that? Any advice?