org.codehaus.jackson.annotate
Annotation Type JsonIgnoreProperties


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface JsonIgnoreProperties

Annotation that can be used to either suppress serialization of properties (during serialization), or ignore processing of JSON properties read (during deserialization).

Only applicable to classes, not for properties (getters, setters, fields).

Since:
1.4

Optional Element Summary
 boolean ignoreUnknown
          Property that defines whether it is ok to just ignore any unrecognized properties during deserialization.
 String[] value
          Names of properties to ignore.
 

value

public abstract String[] value
Names of properties to ignore.

Default:
{}

ignoreUnknown

public abstract boolean ignoreUnknown
Property that defines whether it is ok to just ignore any unrecognized properties during deserialization. If true, all properties that are unrecognized -- that is, there are no setters or creators that accept them -- are ignored without warnings (although handlers for unknown properties, if any, will still be called) without exception.

Does not have any effect on serialization.

Default:
false