Skip to content

Commit 1dbce04

Browse files
suketaMariatta
authored andcommitted
bpo-30621: Update Input Output Tutorial Example(GH-2074)
import json before using json module
1 parent 09663de commit 1dbce04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/tutorial/inputoutput.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ sent over a network connection to some distant machine.
412412
If you have an object ``x``, you can view its JSON string representation with a
413413
simple line of code::
414414

415+
>>> import json
415416
>>> json.dumps([1, 'simple', 'list'])
416417
'[1, "simple", "list"]'
417418

0 commit comments

Comments
 (0)