r"""Command-line tool to validate and pretty-print JSON
$ echo '{"json":"obj"}' | python -m json.tool
$ echo '{ 1.2:3.4}' | python -m json.tool
Expecting property name enclosed in double quotes: line 1 column 3 (char 2)
infile = open(sys.argv[1], 'rb')
infile = open(sys.argv[1], 'rb')
outfile = open(sys.argv[2], 'wb')
raise SystemExit(sys.argv[0] + " [infile [outfile]]")
json.dump(obj, outfile, sort_keys=True,
indent=4, separators=(',', ': '))
if __name__ == '__main__':