Class YassonProperties


  • public class YassonProperties
    extends Object
    Custom properties for configuring Yasson outside of the specification JsonbConfig scope.
    • 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 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
    • Constructor Detail

      • YassonProperties

        public YassonProperties()