don't rely on dict order

This commit is contained in:
Benjamin Peterson 2012-02-20 23:06:22 -05:00
parent 72949bd511
commit f093724845
1 changed files with 1 additions and 1 deletions

View File

@ -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::