self.destination_name = data['trips']['data']['airport'][1]['name']

def to_list(self):
    return [self.name, self.origin, self.origin_name, self.destination,
        self.destination_name]
with open('flight.json', 'r') as f:
    raw_data = json.load(f)
out_data = []
for flight in raw_data['trips']['data']['aircraft']:
    out_data.append(Flight(flight['name'], raw_data).to_list())
headers = ['aircraft name', 'origin', 'origin name', 'destination']
with open('results.csv', 'w') as outfile:
    writer = csv.writer(outfile)
writer.writerow(headers)
writer.writerows(out_data)
Nested JSON response to CSV Python