Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84e59aa

Browse files
committed
Fix highlight and spacing in json example.
1 parent f86b28e commit 84e59aa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/json.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,18 @@ Extending :class:`JSONEncoder`::
9090
['[2.0', ', 1.0', ']']
9191

9292

93-
.. highlight:: none
93+
.. highlight:: bash
9494

9595
Using json.tool from the shell to validate and pretty-print::
9696

9797
$ echo '{"json":"obj"}' | python -mjson.tool
9898
{
9999
"json": "obj"
100100
}
101-
$ echo '{ 1.2:3.4}' | python -mjson.tool
102-
Expecting property name: line 1 column 2 (char 2)
101+
$ echo '{1.2:3.4}' | python -mjson.tool
102+
Expecting property name: line 1 column 1 (char 1)
103103

104-
.. highlight:: python
104+
.. highlight:: python3
105105

106106
.. note::
107107

0 commit comments

Comments
 (0)