ambivalence icon indicating copy to clipboard operation
ambivalence copied to clipboard

Jackson serializable?

Open mcandre opened this issue 8 years ago • 2 comments

Thanks for publishing an Either for Java! Could we make this Jackson-serializable, for use with distributed systems / message passing?

mcandre avatar Mar 14 '16 21:03 mcandre

Tricky. I'd be minded to write a custom Jackson serialiser/deserialiser for it. It's not obvious what the representation should be -

{
    "left": "leftValue"
}

or

[null, "rightValue"]

for example?

poetix avatar Mar 14 '16 23:03 poetix

IMO it should be object.

drabiter avatar Mar 15 '16 05:03 drabiter