don't rely on dict order
This commit is contained in:
parent
72949bd511
commit
f093724845
|
@ -31,7 +31,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}], sort_keys=True, separators=(',',':'))
|
||||
'[1,2,3,{"4":5,"6":7}]'
|
||||
|
||||
Pretty printing::
|
||||
|
|
Loading…
Reference in New Issue