1
2import json
3
4json_data = '[{"ID":10,"Name":"Pankaj","Role":"CEO"},' \
5 '{"ID":20,"Name":"David Lee","Role":"Editor"}]'
6
7json_object = json.loads(json_data)
8
9json_formatted_str = json.dumps(json_object, indent=2)
10
11print(json_formatted_str)
12