jackson-module-scala
jackson-module-scala copied to clipboard
Is Try object supported?
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
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)