I use console.log(responseJSON) and it prints this logs to screen as below code. So I want to print only latlng and when I try to console.log(responseJSON.markers.latlng) or with console.log(responseJSON.markers) then it prints undefined.
Array [
Object {
"markers": Object {
"index": "1",
"latlng": Object {
"latitude": "40.3565",
"longitude": "27.9774",
},
},
},
Object {
"markers": Object {
"index": "3",
"latlng": Object {
"latitude": "40.3471",
"longitude": "27.9598",
},
},
},
Object {
"markers": Object {
"index": "2",
"latlng": Object {
"latitude": "40",
"longitude": "27.9708",
},
},
},]
How can I print and get data printed e.g. with:
console.log(responseJSON.markers.latlng);