i've got output from my json like this :
0: {api: 'Cars', method: 'GET', total: 3}
1: {api: 'Cars', method: 'POST', total: 4}
2: {api: 'Trucks', method: 'POST', total: 6}
3: {api: 'Boats', method: 'GET', total: 6}
and what i want to re-create array to populating series in Highchart.js with type: packedbubble
[
Cars: [
{name: "GET", value: 3},
{name: "PUT", value: 0},
{name: "POST", value: 4},
{name: "DELETE", value: 0}
],
Trucks: [
{name: "GET", value: 0},
{name: "PUT", value: 0},
{name: "POST", value: 6},
{name: "DELETE", value: 0}
],
Boats: [
{name: "GET", value: 6},
{name: "PUT", value: 0},
{name: "POST", value: 0},
{name: "DELETE", value: 0}
]
]