-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
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
Injecting class during serialization #1584
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Did you try the approach described in https://github.com/nlohmann/json#arbitrary-types-conversions? Can you provide an example? |
I'm not 100% sure what you mean. My prefered solution would be something like this.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm afraid there is no API for this at the moment, I'd have no idea how to add it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have a data class that I want to use during serialization to map a string value to something else.
Is this currently possible with the library?
The text was updated successfully, but these errors were encountered: