<gh_stars>0
import json
from operator import itemgetter

filename = "room_price.json"

with open(filename, 'r') as fin:
	offices = json.load(fin)

rooms = offices['office']
# for room in rooms:
# 	print(room.get('price'))

sorted_rooms = sorted(rooms, key=lambda x: x.get('price'), reverse=True)
print(sorted_rooms)

import json
from operator import itemgetter

filename = "room_price.json"

with open(filename, 'r') as fin:
	offices = json.load(fin)

rooms = offices['office']
# for room in rooms:
# 	print(room.get('price'))

sorted_rooms = sorted(rooms, key=lambda x: x.get('price'), reverse=True)
print(sorted_rooms)
# for room in rooms: # 	print(room.get('price'))