There was an error while loading. Please reload this page.
1 parent 28fbedc commit 79d6d5cCopy full SHA for 79d6d5c
1 file changed
Doc/library/json.rst
@@ -264,6 +264,8 @@ Basic Usage
264
into JSON and then back into a dictionary, the dictionary may not equal
265
the original one. That is, ``loads(dumps(x)) != x`` if x has non-string
266
keys.
267
+ *sort_keys* sorts the keys before they are coerced to strings,
268
+ so numeric keys are sorted by value, not by their string representation.
269
270
.. function:: load(fp, *, cls=None, object_hook=None, parse_float=None, \
271
parse_int=None, parse_constant=None, \
0 commit comments