R. David Murray added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21650>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to