Say I have the following class:
public class Parent { public int age; @JsonUnwrapped public Name name; }
Producing JSON:
@JsonUnwrapped works for both serialization and deserialization, you shouldn't need to take any additional steps.
@JsonUnwrapped