Я хочу просмотреть эти данные Json в моем шаблоне Django. Хотя я этого добился, но у меня есть какой-то похожий массив, который мне трудно перебрать из-за сходства в их названии. Как у меня есть два сегмента flight.

[{'type': 'flight-offer', 'id': '1572710950059-668908355', 'offerItems': [{'services': [{'segments': [{'flightSegment': {'departure': {'iataCode': 'LOS', 'terminal': 'I', 'at': '2020-01-01T00:40:00+01:00'}, 'arrival': {'iataCode': 'JFK', 'terminal': '4', 'at': '2020-01-01T06:32:00-05:00'}, 'carrierCode': 'DL', 'number': '219', 'aircraft': {'code': '332'}, 'operating': {'carrierCode': 'DL', 'number': '219'}, 'duration': '0DT11H52M'}, 'pricingDetailPerAdult': {'travelClass': 'ECONOMY', 'fareClass': 'U', 'availability': 9, 'fareBasis': 'UL10J3M2'}}]}, {'segments': [{'flightSegment': {'departure': {'iataCode': 'LGA', 'terminal': 'D', 'at': '2020-02-02T19:00:00-05:00'}, 'arrival': {'iataCode': 'ATL', 'terminal': 'S', 'at': '2020-02-02T21:41:00-05:00'}, 'carrierCode': 'DL', 'number': '2778', 'aircraft': {'code': '321'}, 'operating': {'carrierCode': 'DL', 'number': '2778'}, 'duration': '0DT2H41M'}, 'pricingDetailPerAdult': {'travelClass': 'ECONOMY', 'fareClass': 'T', 'availability': 9, 'fareBasis': 'TL10J3M3'}}, {'flightSegment': {'departure': {'iataCode': 'ATL', 'terminal': 'I', 'at': '2020-02-02T22:25:00-05:00'}, 'arrival': {'iataCode': 'LOS', 'terminal': 'I', 'at': '2020-02-03T15:10:00+01:00'}, 'carrierCode': 'DL', 'number': '54', 'aircraft': {'code': '332'}, 'operating': {'carrierCode': 'DL', 'number': '54'}, 'duration': '0DT10H45M'}, 'pricingDetailPerAdult': {'travelClass': 'ECONOMY', 'fareClass': 'T', 'availability': 9, 'fareBasis': 'TL10J3M3'}}]}], 'price': {'total': '1415.86', 'totalTaxes': '623.86'}, 'pricePerAdult': {'total': '1415.86', 'totalTaxes': '623.86'}}]},