Package com.alibaba.fastjson2.annotation
Annotation Type JSONType
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanProperty that defines what to do regarding ordering of properties not explicitly included in annotation instance.Class<? extends JSONReader.AutoTypeBeforeHandler>Class<?>SpecifyJSONReader.Features to use features when deserializingClass<?>booleanReduce code branches during code generation to improve performance, If it is true, there will be no code related to reference detection.String[]String[]String[]Order in which properties of annotated object are to be serialized in.Class<?>[]Class<?>SpecifyJSONWriter.Features to use features when serializing outputClass<?>boolean
-
Element Details
-
builder
Class<?> builder- Default:
- void.class
-
typeKey
String typeKey- Default:
- ""
-
typeName
String typeName- Default:
- ""
-
seeAlso
Class<?>[] seeAlso- Default:
- {}
-
seeAlsoDefault
Class<?> seeAlsoDefault- Since:
- 2.0.24
- Default:
- java.lang.Void.class
-
alphabetic
boolean alphabeticProperty that defines what to do regarding ordering of properties not explicitly included in annotation instance. If set to true, they will be alphabetically ordered (default setting); if false, order is undefined- Returns:
- Default:
- true
-
deserializeFeatures
JSONReader.Feature[] deserializeFeaturesSpecifyJSONReader.Features to use features when deserializing- Default:
- {}
-
serializeFeatures
JSONWriter.Feature[] serializeFeaturesSpecifyJSONWriter.Features to use features when serializing output- Default:
- {}
-
naming
PropertyNamingStrategy naming- Default:
- NeverUseThisValueExceptDefaultValue
-
writeEnumAsJavaBean
boolean writeEnumAsJavaBean- Default:
- false
-
ignores
String[] ignores- Default:
- {}
-
includes
String[] includes- Default:
- {}
-
orders
String[] ordersOrder in which properties of annotated object are to be serialized in.- Default:
- {}
-
serializer
Class<?> serializer- Default:
- java.lang.Void.class
-
deserializer
Class<?> deserializer- Default:
- java.lang.Void.class
-
serializeFilters
- Default:
- {}
-
schema
String schema- Default:
- ""
-
format
String format- Since:
- 2.0.8
- Default:
- ""
-
locale
String locale- Since:
- 2.0.8
- Default:
- ""
-
autoTypeBeforeHandler
Class<? extends JSONReader.AutoTypeBeforeHandler> autoTypeBeforeHandler- Since:
- 2.0.25
- Default:
- com.alibaba.fastjson2.JSONReader.AutoTypeBeforeHandler.class
-
disableReferenceDetect
boolean disableReferenceDetectReduce code branches during code generation to improve performance, If it is true, there will be no code related to reference detection.- Since:
- 2.0.50
- Default:
- false
-