Package org.eclipse.yasson
Class YassonProperties
- java.lang.Object
-
- org.eclipse.yasson.YassonProperties
-
public class YassonProperties extends java.lang.ObjectCustom properties for configuring Yasson outside of the specificationJsonbConfigscope.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFAIL_ON_UNKNOWN_PROPERTIESProperty used to specify behaviour on deserialization when JSON document contains properties which doesn't exist in the target class.static java.lang.StringNULL_ROOT_SERIALIZERSerializer to use when object provided toJsonb.toJson(Object)isnullor an empty Optional.static java.lang.StringUSER_TYPE_MAPPINGUser type mapping for map interface to implementation classes.static java.lang.StringZERO_TIME_PARSE_DEFAULTINGMakes parsing dates defaulting to zero hour, minute and second.
-
Constructor Summary
Constructors Constructor Description YassonProperties()
-
-
-
Field Detail
-
FAIL_ON_UNKNOWN_PROPERTIES
public static final java.lang.String FAIL_ON_UNKNOWN_PROPERTIES
Property used to specify behaviour on deserialization when JSON document contains properties which doesn't exist in the target class. Default value is 'true'.- See Also:
- Constant Field Values
-
USER_TYPE_MAPPING
public static final java.lang.String USER_TYPE_MAPPING
User type mapping for map interface to implementation classes.- See Also:
- Constant Field Values
-
ZERO_TIME_PARSE_DEFAULTING
public static final java.lang.String ZERO_TIME_PARSE_DEFAULTING
Makes parsing dates defaulting to zero hour, minute and second. This will made available to parse patterns like yyyy.MM.dd to
Date,Calendar,InstantLocalDateor evenZonedDateTime.If time zone is not set in the pattern than UTC time zone is used. So for example json value 2018.01.01 becomes 2018.01.01 00:00:00 UTC when parsed to instant
InstantorZonedDateTime.- See Also:
- Constant Field Values
-
NULL_ROOT_SERIALIZER
public static final java.lang.String NULL_ROOT_SERIALIZER
Serializer to use when object provided toJsonb.toJson(Object)isnullor an empty Optional. Much be instance ofJsonbSerializer<Object>. Its obj value will be respective parameter.- See Also:
- Constant Field Values
-
-