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

Use Jdk8Module to serialize Optional values #1175

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

jasmith-hs
Copy link
Contributor

Generally, optional values are unwrapped, but if they are nested within a collection or a bean, they will be serialized as {"empty": false, "present": true} without the use of Jdk8Module.

By registering Jdk8Module, we can serialize Optional values properly.

@jasmith-hs jasmith-hs merged commit f3ab01a into master Apr 22, 2024
5 checks passed
@jasmith-hs jasmith-hs deleted the serialize-optional branch April 22, 2024 15:27
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

Successfully merging this pull request may close these issues.

1 participant