Arbitrary types conversions for a generic list type variable #4267
Answered
by
gregmarr
mohit-mittal-cosm
asked this question in
Q&A
-
I am unsure how to handle the conversion inside from_Json |
Beta Was this translation helpful? Give feedback.
Answered by
gregmarr
Jan 17, 2024
Replies: 2 comments 6 replies
-
converted list to std::vector object; |
Beta Was this translation helpful? Give feedback.
4 replies
-
Have you read this section? https://github.com/nlohmann/json?tab=readme-ov-file#conversion-from-stl-containers |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The DEFINE_TYPE macros make this very simple: