I am trying to convert a JSON string with the following data :
{
"locations": [{
"info": "7811 N. Octavia",
"longitude": -87.8086439,
"latitude": 42.0229656
}, {
"info": "PO Box 271743",
"longitude": -73.087749,
"latitude": 41.6032207
}, {
"info": "P.O. Box 269",
"longitude": -86.7818523,
"latitude": 34.0667074
}]
}
to the following structure:
var locations = [
['Bondi Beach', -33.890542, 151.274856],
['Coogee Beach', -33.923036, 151.259052],
['Cronulla Beach', -34.028249, 151.157507],
['Manly Beach', -33.80010128657071, 151.28747820854187],
['Maroubra Beach', -33.950198, 151.259302]
];
Is there any way to achieve this using javascript?