We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It looks like dump[s] makes a distinction between dict instances and OrderedDict instances: for dict it sorts the keys before serializing.
I bet this code predates the preserve-insertion-order of Python dicts.
It would be useful to have a dump option like json.dump[s]: sort_keys, that we can set to False if we prefer the dict's order to be preserved.
sort_keys
(I might try to PR this, but I'm not familiar with the code base.)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
It looks like dump[s] makes a distinction between dict instances and OrderedDict instances: for dict it sorts the keys before serializing.
I bet this code predates the preserve-insertion-order of Python dicts.
It would be useful to have a dump option like json.dump[s]:
sort_keys
, that we can set to False if we prefer the dict's order to be preserved.(I might try to PR this, but I'm not familiar with the code base.)
The text was updated successfully, but these errors were encountered: