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