This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aeros
Recipients Dima.Tisnek, aeros, docs@python, josh.r, lebigot, rhettinger
Date 2019-07-13.21:57:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563055060.61.0.596656191256.issue30550@roundup.psfhosted.org>
In-reply-to
Content
> 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.
History
Date User Action Args
2019-07-13 21:57:40aerossetrecipients: + aeros, rhettinger, lebigot, docs@python, Dima.Tisnek, josh.r
2019-07-13 21:57:40aerossetmessageid: <1563055060.61.0.596656191256.issue30550@roundup.psfhosted.org>
2019-07-13 21:57:40aeroslinkissue30550 messages
2019-07-13 21:57:40aeroscreate