Michal Foksa Michal Foksa - 1 year ago 99
Java Question

Jackson: Register fallback deserializer for unknown properties

Is there a way in

to register a custom deserializer (using annotations or another way) for unknown properties? Something like a fallback deserializer, called instead of throwing

NOTE: I do not want to ignore unknown properties, I want to collect them.

Answer Source

Seems like @JsonAnySetter annotation might help. See how-to guide here http://vincentdevillers.blogspot.co.il/2013/08/how-to-map-unknown-json-properties-with.html

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download