Skip to content
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

Support setting the serde modes through toJson/fromJson calls #13

Open
AuHau opened this issue Mar 21, 2024 · 1 comment
Open

Support setting the serde modes through toJson/fromJson calls #13

AuHau opened this issue Mar 21, 2024 · 1 comment

Comments

@AuHau
Copy link
Member

AuHau commented Mar 21, 2024

Sometimes you have type that you would like to serialize/deserialize which you don't have control over (for example coming from library). Currently, I don't know of a way how to achieve that. I would hence propose for adding a parameter to the toJson() and fromJson() calls that would allow setting the Serde's mode. In this way, I could set it to SerdeMode.OptOut and be able to serialize it.

@emizzle
Copy link
Collaborator

emizzle commented Mar 21, 2024

Good idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants