[issue30550] Document order-preserving dictionary output in json
14 Jul
2019
14 Jul
'19
12:57 a.m.
Kyle Stanley
The JSON encoder for dictionaries preserves the order of the items in a dictionary
From what I can tell, the JSON encoder does nothing to preserve the order of the keys. Although the default option is to not modify the existing dictionary, the items() method returns the k,v pairs in a non-random arbitrary manner, which may not match the order the values were entered in. See https://docs.python.org/2/library/stdtypes.html#dict.items.
----------
nosy: +aeros167
_______________________________________
Python tracker
1741
Age (days ago)
1741
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kyle Stanley