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

Order of JsonValue::Object entries #178

Open
timothee-haudebourg opened this issue Mar 17, 2020 · 1 comment
Open

Order of JsonValue::Object entries #178

timothee-haudebourg opened this issue Mar 17, 2020 · 1 comment

Comments

@timothee-haudebourg
Copy link

timothee-haudebourg commented Mar 17, 2020

The documentation is not clear about the order in which the entries of a JSON object will be iterated through the JsonValue::entries method. Is it a lexicographic order? Order of definition in the original string?

Issue #68 is letting me think there was some kind of defined order between keys in an older version of the crate, but is now the order of definition.

@maciejhirsz
Copy link
Owner

Current Object is preserving insertion order, which seems to be a thing most people expect. Will make a note to add it to the docs.

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

No branches or pull requests

2 participants