3
I would like to list the ceps of this json, follows him:
[
{
"id": 1,
"nome": "Hospital Da Mulher",
"cep": "60508090"
},
{
"id": 2,
"nome": "Hospital Maria jose",
"cep": "2"
}
]
And that’s where I’m calling:
$.getJSON('/MinhaDoenca/rest/hospital/get',
function(data) {
alert("O cep é: " + data.cep);
});
I would like you to list all the ceps of my json, how should I proceed?