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 the elements in JSON object #952

Closed
amirhosseindavoody opened this issue Feb 1, 2018 · 2 comments · Fixed by #2258
Closed

Order of the elements in JSON object #952

amirhosseindavoody opened this issue Feb 1, 2018 · 2 comments · Fixed by #2258
Assignees
Labels
release item: ✨ new feature solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Milestone

Comments

@amirhosseindavoody
Copy link

This is not an issue or the bug, but something that I noticed while using your library and I think it should be included in the documentation just for the sake of completeness.

I have noticed that when a JSON structure is created the order in which the elements are printed is in alphabetical order of name of properties. It would be nice to include this somewhere in the documentation of the library.

@nlohmann
Copy link
Owner

nlohmann commented Feb 1, 2018

It's in the README: https://github.com/nlohmann/json#notes (last note).

@nlohmann nlohmann self-assigned this Jul 11, 2020
@nlohmann nlohmann added release item: ✨ new feature solution: proposed fix a fix for the issue has been proposed and waits for confirmation labels Jul 11, 2020
@nlohmann nlohmann added this to the Release 3.8.1 milestone Jul 11, 2020
@nlohmann
Copy link
Owner

To be fixed with #2258.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release item: ✨ new feature solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants