Similar to Jackson JsonIgnore but provides the option to just ignore serialize or deserialize.
This provides the same features as Expose but from the opposite perspective which is probably more common and more familiar to Jackson users.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIftrue, the field marked with this annotation is deserialized from the JSON.booleanIftrue, the field marked with this annotation is written out in the JSON while serializing.
-
Element Details
-
serialize
boolean serializeIftrue, the field marked with this annotation is written out in the JSON while serializing. Iffalse, the field marked with this annotation is skipped from the serialized output. Defaults tofalse.- Default:
- false
-
deserialize
boolean deserializeIftrue, the field marked with this annotation is deserialized from the JSON. Iffalse, the field marked with this annotation is skipped during deserialization. Defaults tofalse.- Default:
- false
-