@JsonbAnnotation @Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,TYPE,PACKAGE}) public @interface JsonbNillable
Specifies how fields having null values are serialized into JSON.
There are two possible values which can be specified. In case of true, fields are serialized as key/value pair with value null. In case of false, fields will not be serialized (default behaviour).
Annotation can be specified on type or on package and affects all underlying properties and classes.,
For similar functionality on a property level see JsonbProperty
.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
value
Switches on/off serialization of properties with null value.
|
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.