They say Json is simple. But I'm sorry and very sorry.
Next code:
$(document).ready(function(){
$.get( "http://meusite.com/", function(data) {
console.log(data);
});
});
the result the console.log is
[
{"id":"769","cidade":"minhacidade","estado":"PR"},
{"id":"855","cidade":"Caram","estado":"PR"}
]
Exactly what I need. (so far) But from that point I can not get out. I need to manipulate these results. Break it into pieces.
Por in DIVs.
But I can not (I searched google everything) nothing is right.
What do I have to do so that I can by ex:
-
Print the ID of the second city.
-
The second state
And so on because this Json will grow and much.