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

reverse order of serialization #979

Closed
CDitzel opened this issue Feb 22, 2018 · 1 comment
Closed

reverse order of serialization #979

CDitzel opened this issue Feb 22, 2018 · 1 comment
Labels
solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope)

Comments

@CDitzel
Copy link

CDitzel commented Feb 22, 2018

why is the snippet

json j; j["pi"] = 3.141; j["happy"] = true; std::ofstream ofs{ "test.json" }; ofs << j << std::endl;

rsulting in an output like the following

{
"happy": true,
"pi": 3.141
}

it should be the other way around should it not? What am I missing here?

@nlohmann
Copy link
Owner

See last entry in the notes section: https://github.com/nlohmann/json#notes

@nlohmann nlohmann added the solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope) label Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solution: wontfix the issue will not be fixed (either it is impossible or deemed out of scope)
Projects
None yet
Development

No branches or pull requests

2 participants