I want to recover the contents of my json but i can't. and the console "say Uncaught TypeError: Cannot read property 'longitude' of undefined" I'm very new with this method. Thank you if you can help me.
var recuptable = [];
$(document).ready(function(){
$.ajax({
url: 'http://******',
type: 'get',
dataType: 'JSON',
success: function(response){
recuptable.push(response);
}
});
});
console.log(recuptable[1].longitude);