This question has already been answered:
I make an ajax request to the API, but instead of the json object, undefined returned:
return JSON.parse($.ajax({ url: '//autocomplete.travelpayouts.com/jravia?locale=ru&with_countries=false&q=' + $('#takeoff_place').val(), type: 'GET', dataType: 'json' }).responseText); What am I doing wrong?