python json indented code example Example: python json indented import json mydata = json.loads(output) print json.dumps(mydata, indent=4)