Skip to content
New issue

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

Generate JSON output with sorted object keys #189

Open
djmitche opened this issue Sep 1, 2020 · 0 comments
Open

Generate JSON output with sorted object keys #189

djmitche opened this issue Sep 1, 2020 · 0 comments

Comments

@djmitche
Copy link

djmitche commented Sep 1, 2020

"Stable" JSON output libraries generally sort object keys lexically. While I understand from #178 that the default order is insertion order, it would be great to also have an option to produce output with sorted keys.

I think this would this entail a few additional Generator structs, with write_object overridden,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant