Problem with model and storage

In my app I have this as a rest result
[
{
"Name":"LEO TEST",
"Profit":1412.87
},
{
"Name":"Trader 3",
"Profit":427.5
},
{
"Name":"Carla Test",
"Profit":335.0
},
{
"Name":"Vlad Sorokin",
"Profit":16.0
}
]
and i want to save these in local storage in order to use them to create pie chart with them.
for my pie chart I need a result like this to put in my js variable.

[['Ali Mahmoudi',100], ['Victor Zachariades',8], ['Vladislav Sorokin',14], ['Leonidas Petrou',20]]

below also you can see my settings in picture

1 person has
this question
+1
This topic is no longer open for comments or replies.