Here is my ajax call:
$.ajax({ url: 'url-to-json', type: 'POST', dataType: 'json', cache: 'false', data: { lat: lat, lng: lng } }).done(function(data) { $.each(data, function(a) { alert(data[a]); }); });
Here is json it iterating over:
[ {"Id":"4c75bd5666be6dcb9f70c10f","Name":"BXtra","EnglishName":null,"Lat":35.7515869140625,"Lng":139.33872985839844}, {"Id":"4c5160a1d2a7c9b655d51211","Name":"γ»γγ³γ€γ¬γγ³ ζ¦θ΅ιε°εΊ","EnglishName":null,"Lat":35.750205993652344,"Lng":139.33448791503906}, ... ]
But instead of actually giving me access to the properties of each element in the json array, it literally iterates over each character in the array one by one.
What am I doing wrong?
source share