Deserialize mutable (primitive/object) JSON property to object with Jackson
问题 Given a JSON object having a mutable property (e.g. label ) which can be either primitive value (e.g. string) or an object. A hypothetical use-case could be a wrapper for pluralized translation of a label: { "label": "User name" } or { "label": { "one": "A label", "other": "The labels" } } The goal is to bring Jackson deserialization always return a fixed structure on the Java-side. Thus, if a primitive value is given it is always translated to a certain property (e.g. other ) of the target