Last Updated: February 25, 2016
·
799
· phedny

Pretty print JSON

import json
s = '{ "hello": "world", "goodbye": [ "me", "you" ] }'
print json.dumps(json.loads(s), indent=4)