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