I have the following json:
{
"destination_addresses": [
"Rua B, 1 - Coqueiro,Belém - PA, 66670-350, Belém - PA, 66670-350, Brasil"
],
"origin_addresses": [
"Pref. José Walter, Fortaleza - CE, 60810-670, Brasil"
],
"rows": [
{
"elements": [
{
"distance": {
"text": "1.495 km",
"value": 1495361
},
"duration": {
"text": "20 horas 33 minutos",
"value": 74009
},
"status": "OK"
}
]
}
],
"status": "OK"
}
My difficulty is basic I know, but I can not access the json nodes when I try
data.destination_addresses
returns me exactly
["Rua B, 1 - Coqueiro,Belém - PA, 66670-350, Belém - PA, 66670-350, Brasil"]
and not just the value .. Rua B, 1 - Coqueiro,Belém - PA, 66670-350, Belém - PA, 66670-350, Brasil
I also can not access for example the distance
or duration
already tried data.rows.elements.distance
and data.rows[0].elements.distance
but also can not .. what is missing so that I can access the nodes?
obs. I use vues.