hello i have json response from MySql in this format
{
"allResult": [{
"UkupanBroj": "1",
"mesec": "Jul"
}, {
"UkupanBroj": "3",
"mesec": "Jun"
}, {
"UkupanBroj": "1",
"mesec": "May"
}],
"resultByKurs": null
}
I am trying to create from this response object to pass into chart plugin
var flotDashSales2Data = [{
data: [
["Jan", 240],
["Feb", 240],
["Mar", 290],
["Apr", 540],
["May", 480],
["Jun", 220],
["Jul", 170],
["Aug", 190]
],
color: "#850d0d"
}];
Is it possible to create new object from my response??? In this way in would be cool if i dont have in my response some month to set form example ["Jan", 0] in my data wich i pass to plugin?