We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a way of cunstring json object so that it preserves the ordering of elements?
For example, this:
nlohmann::json j1 {{"ccc", 2}, {"aaa", 4}}; cout << j1 << endl;
results in a string in different order than originally defined
{"aaa":4,"ccc":2}
I would like to preserve the orginal order, i.e., to get this instead:
{"ccc":2,"aaa":4}
The text was updated successfully, but these errors were encountered:
See this issue #106
Sorry, something went wrong.
Thanks, so it seems as there is no "easy" way for this.
No branches or pull requests
Is there a way of cunstring json object so that it preserves the ordering of elements?
For example, this:
results in a string in different order than originally defined
I would like to preserve the orginal order, i.e., to get this instead:
The text was updated successfully, but these errors were encountered: