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 r.david.murray
Recipients Pavel.Kazlou, berker.peksag, ezio.melotti, pitrou, r.david.murray, rhettinger
Date 2014-06-06.16:46:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402073209.45.0.987844729232.issue21650@psf.upfronthosting.co.za>
In-reply-to
Content
Wait, I read the code wrong.

You can define object_pairs_hook, and use that to return an OrderedDict.  So it should be possible to do this without changing the json module itself.  This is actually documented as a place to use OrderedDict.  Guess I should have read the docs instead of the code :)
History
Date User Action Args
2014-06-06 16:46:49r.david.murraysetrecipients: + r.david.murray, rhettinger, pitrou, ezio.melotti, berker.peksag, Pavel.Kazlou
2014-06-06 16:46:49r.david.murraysetmessageid: <1402073209.45.0.987844729232.issue21650@psf.upfronthosting.co.za>
2014-06-06 16:46:49r.david.murraylinkissue21650 messages
2014-06-06 16:46:49r.david.murraycreate