Trying to loop over the array and access data but without the console.log
for (let i = 0; i < Locations.length; i++) {
console.log(Locations[i]);
}
Data structure of Post for Google Maps: Array --> Obj
[
{
"description": "asdlafaslfj",
"lat": 28.0440005,
"lng": -82.3992308,
"title": "tent"
},
{
"description": "asdadf",
"lat": 28.050104,
"lng": -82.39597859999999,
"title": "Blanket"
},
{
"description": "sadfasf",
"lat": 29.6900252,
"lng": -82.3733803,
"title": "Swamp"
},
{
"description": "9808",
"lat": 29.6900252,
"lng": -82.3733803,
"title": "Dorm"
},
{
"description": "ssljkfasf",
"lat": 29.6900252,
"lng": -82.3733803,
"title": "Treehouse"
},
{
"description": "asdlafaslfj",
"lat": 29.6900252,
"lng": -82.3733803,
"title": "tent"
}
]
Want to store data: Places: Locations --> Places.title