Annotation Interface JSON
JSON annotation defines if some property has to be included or excluded
from the serialization.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSpecifies if a property should be included or excluded from the JSON serialization.Defines different property name for annotated item.booleanDefines if JSON serialization of a class works in a strict mode when only fields with the annotation are serialized.
-
Element Details
-
strict
boolean strictDefines if JSON serialization of a class works in a strict mode when only fields with the annotation are serialized.- Default:
false
-
name
String nameDefines different property name for annotated item. Used both for serialization and parsing.- Default:
""
-
include
boolean includeSpecifies if a property should be included or excluded from the JSON serialization.- Default:
true
-