Как перенести элементы, возвращенные из этого json-файла, в массив, называемый местами:
var places = [];
$.ajax({
url: "http://www.example.com/places.json",
dataType: 'jsonp',
timeout: 5000,
success: function(data, status) {
$.each(data, function(i, item) {
places = item.latitude+','+ item.longitude;
});
},
error: function() {
$("#status").html('There was an error loading the data.');
}
});