I have airport.json file. That data is just like this,

```
{
  "diagnostic":{
      "status":200,
      "elapsetime":"12.9290",
      "memoryusage":"15.39MB",
      "confirm":"success",
      "lang":"id",
      "currency":"IDR"
  },
  "output_type":"json",
  "all_airport":{
    "airport":[
      {
        "airport_name":"PATTIMURA",
        "airport_code":"AMQ",
        "location_name":"Ambon",
        "country_id":"id"
      },
      {
        "airport_name":"SOA",
        "airport_code":"BJW",
        "location_name":"Bajawa",
        "country_id":"id"
      },
      {
        "airport_name":"SEPINGGAN",
        "airport_code":"BPN",
        "location_name":"BalikPapan",
        "country_id":"id"
      },
      {
        "airport_name":"SULTAN ISKANDAR MUDA",
        "airport_code":"BTJ",
        "location_name":"Banda Aceh",
        "country_id":"id"
      },
      {
        "airport_name":"HUSEIN SASTRANEGARA",
        "airport_code":"BDO",
        "location_name":"Bandung",
        "country_id":"id"
      },
      {
        "airport_name":"SYAMSUDDIN NOOR",
        "airport_code":"BDJ",
        "location_name":"Banjarmasin",
        "country_id":"id"
      },
      {
        "airport_name":"BLIMBINGSARI",
        "airport_code":"DQJ",
        "location_name":"Banyuwangi",
        "country_id":"id"
      },
      {
        "airport_name":"HANG NADIM",
        "airport_code":"BTH",
        "location_name":"Batam",
        "country_id":"id"
      },
      {
        "airport_name":"BAUBAU",
        "airport_code":"BUW",
        "location_name":"Baubau",
        "country_id":"id"
      }
    ]
  }
}

```

How to get "airport" data like "airport\_name","airport\_code","location\_name" etc in its array of airport which value of all\_airport object?

Thank you all, it done.

```
$.ajax({
    url:'airport.json',
    dataType: 'json',
    success: function( json ) {
        // get the `airport` array 
        var airports= json.all_airport.airport;

        // loop through the array to populate your list
        $.each(airports, function(i, currentAirport) {  
        // add and option tag to your existing list 
        $('#yourlist').append(new Option( currentAirport.airport_name ));
        });
    }
  });

```