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

Automatically serialize/deserialize Java 8 datatype with jersey-media-json-jackson #3637

Open
jerseyrobot opened this issue Aug 10, 2017 · 1 comment

Comments

@jerseyrobot
Copy link
Contributor

As of today, in order to serialize/deserialize the "new" datatypes introduced in Java 8 (e.g. Optional<T>), you need to provide a custom ObjectMapper (as explained here) and register the corresponding Jackson extension for handling those types (i.e. jackson-modules-java8 for Jackson < 2.8.5 and jackson-modules-java8 for Jackson >= 2.8.5).

I guess it would be nice to provide this functionality out of the box.

@jerseyrobot
Copy link
Contributor Author

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

Successfully merging a pull request may close this issue.

1 participant