I have to deserialize a Class in third-party jar that contains a Map<String,Object> Collection property, so that the Annotation @JsonDeserialize cannot be used to defined at the property level, I find that ObjectMapper can be registered with the custom deserializer, like
ObjectMapper mapper = new ObjectMapper();
SimpleModule module = new SimpleModule();
module.addDeserializer(X.class, new XDeserializer());
mapper.registerModule(module);
X x = mapper.readValue(json, X.class);
but this is for class, is there any way to register a custom deserializer for property?