NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT #3653
Answered
by
falbrechtskirchinger
ansa-sequence
asked this question in
Q&A
-
Why we have not save argument order in output json file? For example : After compilation this program we haven not argument order json file Its standard behavior or we could do it in right order? |
Beta Was this translation helpful? Give feedback.
Answered by
falbrechtskirchinger
Aug 2, 2022
Replies: 1 comment 1 reply
-
Also, why are you using the non-intrusive version of the macro in an intrusive manner? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ansa-sequence
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nlohmann::json
is unordered. You'd have to usenlohmann::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?