Skip to content

NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT #3653

Discussion options

You must be logged in to vote

nlohmann::json is unordered. You'd have to use nlohmann::ordered_json but we don't have a macro for that yet (there's a PR in the works). You can do it manually, though.

Also, why are you using the non-intrusive version of the macro in an intrusive manner?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ansa-sequence
Comment options

Answer selected by ansa-sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants