Class YassonProperties


  • public class YassonProperties
    extends java.lang.Object
    Custom properties for configuring Yasson outside of the specification JsonbConfig scope.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static 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.
      static java.lang.String NULL_ROOT_SERIALIZER
      Serializer to use when object provided to Jsonb.toJson(Object) is null or an empty Optional.
      static java.lang.String USER_TYPE_MAPPING
      User type mapping for map interface to implementation classes.
      static java.lang.String ZERO_TIME_PARSE_DEFAULTING
      Makes parsing dates defaulting to zero hour, minute and second.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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, Instant LocalDate or even ZonedDateTime.

        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 Instant or ZonedDateTime.

        See Also:
        Constant Field Values
      • NULL_ROOT_SERIALIZER

        public static final java.lang.String NULL_ROOT_SERIALIZER
        Serializer to use when object provided to Jsonb.toJson(Object) is null or an empty Optional. Much be instance of JsonbSerializer<Object>. Its obj value will be respective parameter.
        See Also:
        Constant Field Values
    • Constructor Detail

      • YassonProperties

        public YassonProperties()