Package org.eclipse.yasson
Class YassonProperties
- java.lang.Object
-
- org.eclipse.yasson.YassonProperties
-
public class YassonProperties extends Object
Custom properties for configuring Yasson outside of the specificationJsonbConfig
scope.
-
-
Field Summary
Fields Modifier and Type Field Description static 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.static String
NULL_ROOT_SERIALIZER
Serializer to use when object provided toJsonb.toJson(Object)
isnull
or an empty Optional.static String
USER_TYPE_MAPPING
User type mapping for map interface to implementation classes.static String
ZERO_TIME_PARSE_DEFAULTING
Makes parsing dates defaulting to zero hour, minute and second.
-
Constructor Summary
Constructors Constructor Description YassonProperties()
-
-
-
Field Detail
-
FAIL_ON_UNKNOWN_PROPERTIES
public static final 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 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 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
,Instant
LocalDate
or evenZonedDateTime
.If time zone is not set in the pattern then 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
Instant
orZonedDateTime
.- See Also:
- Constant Field Values
-
NULL_ROOT_SERIALIZER
public static final String NULL_ROOT_SERIALIZER
Serializer to use when object provided toJsonb.toJson(Object)
isnull
or an empty Optional. Must be instance ofJsonbSerializer
<Object>
. Its obj value will be respective parameter.- See Also:
- Constant Field Values
-
-