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

import json before using json module
This commit is contained in:
suketa 2017-06-12 10:42:59 +09:00 committed by Mariatta
parent 09663de203
commit 1dbce04d0e
1 changed files with 1 additions and 0 deletions

View File

@ -412,6 +412,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"]'