You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why i think it is useful? Because i want to register the JacksonJson in the akka config, and akka can just create an instance of the class if it has no parameters.
akka.serialization.jackson {
jackson-modules += "[..].JacksonJsonModule"# <--- Right now this is not possible
}
It is useful if you use JsValue in a case class which gets serialized by akka. When it comes to deserialization you now enter in an
InvalidDefinitionException: Cannot construct instance of ... (no Creators, like default construct, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information
Perhaps you have another solution, but my current solution was to fork the file and add a class like mentioned for my purpose.
The text was updated successfully, but these errors were encountered:
Hi,
i would be great if you could add another class without class parameters to
https://github.com/playframework/play-json/blob/main/play-json/jvm/src/main/scala/play/api/libs/json/jackson/JacksonJson.scala
Something like:
Why i think it is useful? Because i want to register the JacksonJson in the akka config, and akka can just create an instance of the class if it has no parameters.
It is useful if you use JsValue in a case class which gets serialized by akka. When it comes to deserialization you now enter in an
InvalidDefinitionException: Cannot construct instance of
...(no Creators, like default construct, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information
Perhaps you have another solution, but my current solution was to fork the file and add a class like mentioned for my purpose.
The text was updated successfully, but these errors were encountered: