0
I am retrieving a Json by Node/Axios and receive the following structure (A and B). I have 2 occurrences of establishments.
RESULT TO
{
statuscod: 200,
mensagem: null,
dados: '{"estrutura":{"estabelecimentos":[{"idPropriedade":353359,"municipio"...
}
result B
Json result of the "data variable"
{
"estrutura": {
"estabelecimentos": [{
"idPropriedade": 353359,
"municipio": "Votuporanga",
"uf": "SP",
}, {
"idPropriedade": 353366,
"municipio": "Valentim Gentil",
"uf": "SP",
}],
"qtde": 2
}
}
In the JS running console.log(Response.data) it shows the result B, but I can’t access the most internal data (Uf of the establishments, Qtde for example) I have already executed: data.GtaEstablishmentsWSVO.establishments[0]. Uf data.GtaEstablishingcementsWSVO.Qtde but without success. Could you help me by telling me what’s wrong? Accessing.statuscod data returns 200 (correct)
Where Gtaestabelecimentoswsvo is written, read structure
– Galvez