# section03 # python 가상환경에서 설치한 simplejson 패키지 실행 # 외부 설치 패키지 테스트 import simplejson as json test_dict = {'1': 95, '4': 77, '3': 65, '5': 100, '2': 88} # simplejson 실행 print(json.dumps(test_dict, sort_keys=True, indent=4 * ' '))
{
"1": 95,
"2": 88,
"3": 65,
"4": 77,
"5": 100
}