@Retention(value=RUNTIME) @Target(value=FIELD) public @interface JsonIgnore
This provides the same features as Expose but from the opposite perspective which is probably more common and more familiar to Jackson users.
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
deserialize
If
true, the field marked with this annotation is deserialized from the JSON. |
boolean |
serialize
If
true, the field marked with this annotation is written out in the JSON while
serializing. |
public abstract boolean serialize
true, the field marked with this annotation is written out in the JSON while
serializing. If false, the field marked with this annotation is skipped from the
serialized output. Defaults to false.public abstract boolean deserialize
true, the field marked with this annotation is deserialized from the JSON.
If false, the field marked with this annotation is skipped during deserialization.
Defaults to false.Copyright © 2016. All rights reserved.