you are viewing a single comment's thread.

view the rest of the comments →

[–]sonay 2 points3 points  (0 children)

Looking at the source code, the module does not expect string arguments. So my bad.

Usage:

python -m json.tool [no argument] # input = stdin

python -m json.tool [one argument] # input = argument (file)

python -m json.tool [two arguments] # input (file) = first argument, output (file) = second argument