Commit 16eed0be authored by Georg Brandl's avatar Georg Brandl

Using "-m module" is easier to read and understand than "-mmodule".

parent 7c80a768
...@@ -97,11 +97,11 @@ Extending :class:`JSONEncoder`:: ...@@ -97,11 +97,11 @@ Extending :class:`JSONEncoder`::
Using json.tool from the shell to validate and pretty-print:: Using json.tool from the shell to validate and pretty-print::
$ echo '{"json":"obj"}' | python -mjson.tool $ echo '{"json":"obj"}' | python -m json.tool
{ {
"json": "obj" "json": "obj"
} }
$ echo '{1.2:3.4}' | python -mjson.tool $ echo '{1.2:3.4}' | python -m json.tool
Expecting property name enclosed in double quotes: line 1 column 2 (char 1) Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
.. highlight:: python3 .. highlight:: python3
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment