For the pretty printing of JSON data, you can use parameter "indent" with function dumps(). Here is an example:
>>> import json>>> a = {'Name': 'ABC', 'ID': 123}>>> v = json.dumps(a, indent=4)>>> print(v){ "Name": "ABC", "ID": 123}