mirror of
https://github.com/python/cpython.git
synced 2025-12-31 12:33:28 +00:00
Add a space to make json doc a bit more readable
This commit is contained in:
parent
5c1a0c969d
commit
de579d4359
2 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ Encoding basic Python object hierarchies::
|
|||
Compact encoding::
|
||||
|
||||
>>> import json
|
||||
>>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',',':'))
|
||||
>>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',', ':'))
|
||||
'[1,2,3,{"4":5,"6":7}]'
|
||||
|
||||
Pretty printing::
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
Compact encoding::
|
||||
|
||||
>>> import json
|
||||
>>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',',':'))
|
||||
>>> json.dumps([1,2,3,{'4': 5, '6': 7}], separators=(',', ':'))
|
||||
'[1,2,3,{"4":5,"6":7}]'
|
||||
|
||||
Pretty printing::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue