Pavel Kazlou added the comment:
The idea is to keep the same order as in input.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21650
New submission from Pavel Kazlou:
Currently when you use json.tool, fields are reordered alphabetically.
In source code the value of sort_keys is hardcoded to be true.
It should be easy to expose this option as command line parameter.
--
components: Library (Lib)
messages: 219675
nosy
Pavel Kazlou added the comment:
This is the line in module I'm talking about:
json.dump(obj, outfile, sort_keys=True, indent=4)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21650