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

No serializer for Try<?> #181

Open
qux42 opened this issue Apr 19, 2021 · 1 comment
Open

No serializer for Try<?> #181

qux42 opened this issue Apr 19, 2021 · 1 comment

Comments

@qux42
Copy link

qux42 commented Apr 19, 2021

Hello,
I wonder why there is no serializer for Try. We use vavr a lot in akka-messages, where we can have a Try as an response. So far we are serializing everything with protobuf, but we are planning to change to Jackson.
Is it possible, that a serializer for Try gets added?

@hypr2771
Copy link

Here is my attempt to implement a Try serializer and deserializer (note that it also adds a mixin, due to the lack of good support of StackTraceElement): hypr2771/vavr-jackson@dd701ef.

Note: I am a beginner using Jackson, so I wouldn't trust much what I did there (some copy and paste), but it seems to work in unit test and using it on my application.

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