Last Updated: February 25, 2016
·
796
· phedny

Pretty print JSON

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