Created
July 21, 2010 18:54
-
-
Save jbowes/484943 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# | |
# jsondent - json indenter | |
# | |
# (C) 2010 James Bowes <[email protected]> | |
# | |
# very complicated code! | |
import sys | |
import json | |
loaded = json.load(sys.stdin) | |
json.dump(loaded, sys.stdout, sort_keys=True, indent=4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment