I have a class that I want to be deserialized through calling a constructor with one method that accepts the full json object as String:
public class MyDataObject {
@IwantObjectMapperToCallThisWhenDeserializing
public MyDataObject(String json) {
// custom logic
}
}
Is it possible to achieve with simple annotations only, without impementing my own JsonDeserializer
?