Skip to content

Is this the best way to map the members of a class to keys for multiple objects? #2388

Answered by nlohmann
dominique120 asked this question in Q&A
Discussion options

You must be logged in to vote

You may want to define a to_json function for your type Client. See https://github.com/nlohmann/json#arbitrary-types-conversions for more information.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nlohmann
Comment options

Answer selected by dominique120
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