-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
ordering of keys #84
Comments
I understand the practical importance but unlikely to implement for now so closing. There are various difficulties here; no support in Go standard library, custom internal functions. |
@itchyny at least for a YAML roundtrip there would be support for ordered keys using |
The README acknowledges the discrepancies between jq and gojq with respect to key ordering,
but there is no open "ticket" to track this issue, which I believe to be critical.
Having a ticket will also allow others to weigh in.
Based on my own personal experience and observations, I believe that one of jq's great strengths
(at least after jq 1.3) is that it supports the ordering of keys, while defining "object equality" without regard to key ordering.
The practical importance of supporting the ordering of keys is closely related to what I take to be
one of JSON's main goals -- to be readable and maintainable by humans.
The text was updated successfully, but these errors were encountered: