Hi I'm testing a rest api call by http://airportcode.riobard.com that allows me look up airport codes. When I type in the following into my browser:
http://airportcode.riobard.com/search?q=las%20vegas&fmt=JSON
I get the correct json. However when I make a json jQuery call:
var url = 'http://airportcode.riobard.com/search?q=las vegas&fmt=JSON';
// Request json
jQuery.getJSON(url, function(data){
console.log(data);
});
I get a 200 which is good, but the response object is empty. Why is this happening to me?
Thanks.