Commit 107949cb authored by Mariatta's avatar Mariatta Committed by GitHub

bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2120)

import json before using json module
(cherry picked from commit 1dbce04d)
parent 51658f7f
......@@ -390,6 +390,7 @@ sent over a network connection to some distant machine.
If you have an object ``x``, you can view its JSON string representation with a
simple line of code::
>>> import json
>>> json.dumps([1, 'simple', 'list'])
'[1, "simple", "list"]'
......
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