From: Mariatta Date: Mon, 12 Jun 2017 01:59:17 +0000 (-0700) Subject: bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2119) X-Git-Tag: v3.5.4rc1~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7563b0508172cedb5e6a95d05e9122f1a0bfcd86;p=python bpo-30621: Update Input Output Tutorial Example(GH-2074) (GH-2119) import json before using json module (cherry picked from commit 1dbce04d0e3e93b715eb0d8024da396361759d16) --- diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 5add11a8a4..999034a970 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -411,6 +411,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"]'