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

Is Try object supported? #433

Open
emanodame opened this issue Sep 27, 2019 · 1 comment
Open

Is Try object supported? #433

emanodame opened this issue Sep 27, 2019 · 1 comment

Comments

@emanodame
Copy link

I get this exception:

Can not construct instance of scala.util.Try, problem: abstract types either need to be mapped to concrete types, have custom deserializer

@pjfanning
Copy link
Member

Would you be able to provide a code sample? Serialization seems to work for me but I suspect that deserialization might be a problem. We don't have an explicit module for Trys like there are for other types like Either. You might be able to write a module of your own (see com.fasterxml.jackson.module.scala.EitherModule for an example)

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