Skip to content

reverse order of serialization  #979

Description

@CDitzel

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    solution: wontfixthe issue will not be fixed (either it is impossible or deemed out of scope)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions