I have the following JSON
[ { "id": 1, "nome": "Matheus Almeida Siccenna", "cpf": null, "matricula": { "id": 555, "empresa": 1, "unidade": 0, "descricaoUnidade": null, "curso": 1, "descricaoCurso": null, "serie": 1, "descricaoSerie": null, "turma": 3, "descricaoTurma": null, "periodo": "Manhã", "ativo": false }, "contato": { "email": "[email protected]", "ddd": "41", "telCelular": "(41)123456789", "telResidencial": "123456789", "telComercial": "12345-6789" } } ]
and I wanted to access the data with JS
I usually make a for(i in response.content)
and I access it with response.content[i].nome
but I can not. It is returning undefined
.
Does anyone know what it is?
(JSON is received via $ .get)