From: Ezio Melotti Date: Sat, 14 Apr 2012 03:02:18 +0000 (-0600) Subject: Fix highlight and spacing in json example. X-Git-Tag: v3.3.0a3~233^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84e59aa989bebdd39d96156e5041dd79bde5a192;p=python Fix highlight and spacing in json example. --- diff --git a/Doc/library/json.rst b/Doc/library/json.rst index f656700887..c2ad6e9a83 100644 --- a/Doc/library/json.rst +++ b/Doc/library/json.rst @@ -90,7 +90,7 @@ Extending :class:`JSONEncoder`:: ['[2.0', ', 1.0', ']'] -.. highlight:: none +.. highlight:: bash Using json.tool from the shell to validate and pretty-print:: @@ -98,10 +98,10 @@ Using json.tool from the shell to validate and pretty-print:: { "json": "obj" } - $ echo '{ 1.2:3.4}' | python -mjson.tool - Expecting property name: line 1 column 2 (char 2) + $ echo '{1.2:3.4}' | python -mjson.tool + Expecting property name: line 1 column 1 (char 1) -.. highlight:: python +.. highlight:: python3 .. note::