mirror of
https://github.com/python/cpython.git
synced 2025-11-13 15:40:05 +00:00
Merge highlight and spacing fixes in json example with 3.2.
This commit is contained in:
commit
9c9af9d2ad
1 changed files with 4 additions and 4 deletions
|
|
@ -90,7 +90,7 @@ Extending :class:`JSONEncoder`::
|
||||||
['[2.0', ', 1.0', ']']
|
['[2.0', ', 1.0', ']']
|
||||||
|
|
||||||
|
|
||||||
.. highlight:: none
|
.. highlight:: bash
|
||||||
|
|
||||||
Using json.tool from the shell to validate and pretty-print::
|
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"
|
"json": "obj"
|
||||||
}
|
}
|
||||||
$ echo '{ 1.2:3.4}' | python -mjson.tool
|
$ echo '{1.2:3.4}' | python -mjson.tool
|
||||||
Expecting property name: line 1 column 2 (char 2)
|
Expecting property name: line 1 column 1 (char 1)
|
||||||
|
|
||||||
.. highlight:: python
|
.. highlight:: python3
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue