[issue21650] add json.tool option to avoid alphabetic sort of fields
Raymond Hettinger
report at bugs.python.org
Sat Nov 1 08:20:23 CET 2014
Raymond Hettinger added the comment:
To me, "--unsorted" implies arbitrary ordering such as the order generated by regular dictionaries. I think the option should be "--order-preserving" or some such. The option name needs to make it clear that the output is in the same order an the input.
As side from the option name, I'm +1 on the patch. It is very annoying to look at scrambled JSON when the original presentation order made more logical sense.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21650>
_______________________________________
More information about the Python-bugs-list
mailing list