I am getting below exception during deserialization , the guest profile is a nested object within the Root object (few levels within it). i dont have control over how it is serialized since I am only the consumer of this message from a kafka topic. Is there a way to make this work, other than setting
mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE,false);
which works for me and returns null for GuestProfile
with other attributes being populated. But, I need a way to customize the deserialization for this particular nested object in the JSON and have it populate.
com.fasterxml.jackson.databind.JsonMappingException: Unexpected token (END_OBJECT), expected FIELD_NAME: missing property '@type' that is to contain type id (for class com.test.GuestProfile)