Created
June 21, 2011 22:14
Revisions
-
abi revised this gist
Jun 21, 2011 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ #Usage: py thisfile.py {JSON-string} #Try py thisfile.py "["foo", {"bar":["baz", null, 1.0, 2]}]" import json import sys -
abi created this gist
Jun 21, 2011 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #Usage: py thisfile.py {JSON-string} import json import sys if __name__ == "__main__": obj = json.loads(sys.argv[1]) print json.dumps(obj, sort_keys=True, indent=4)