!head ../airmaps.json import json with open('../airmaps.json') as infile: content = json.load(infile) content lst = [] for (k, v) in content.items(): lst.append({'code': k, 'url': v['url'], 'coords': v['coords']}) lst = [{'code': k, 'url': v['url'], 'coords': v['coords']} for (k, v) in content.items()] lst with open('airmaps_lst.json', 'w') as outfile: json.dump(lst, outfile) !head airmaps_lst.json