Package org.codehaus.jackson.annotate
Annotation Type JsonWriteNullProperties
@Target({TYPE,METHOD,FIELD})
@Retention(RUNTIME)
@Deprecated
public @interface JsonWriteNullProperties
Deprecated.
Annotation that can be used to define whether object properties
that have null values are to be written out when serializing
content as JSON. This affects Bean and Map serialization.
Annotation can be used with Classes (all instances of given class) and Methods.
Default value for this property is 'true', meaning that null properties are written.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Deprecated.Whether properties for beans of annotated type will always be written (true), or only if not null (false).
-
Element Details
-
value
boolean valueDeprecated.Whether properties for beans of annotated type will always be written (true), or only if not null (false).- Default:
true
-
JsonSerialize.include()
(with valuesALWAYS
orNON_NULL
)