Repository: eclipse-ee4j/yasson
Branch: main
Commit: ba42fac2dfcc
Files: 596
Total size: 1.6 MB
Directory structure:
gitextract_u4tfpvr0/
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.md
│ │ ├── feature_request.md
│ │ └── other-issue.md
│ ├── dependabot.yml
│ └── workflows/
│ └── maven.yml
├── .gitignore
├── CONTRIBUTING.md
├── LICENSE.md
├── NOTICE.md
├── README.md
├── etc/
│ ├── checkstyle-suppressions.xml
│ ├── checkstyle.xml
│ ├── copyright-exclude.txt
│ ├── copyright.sh
│ ├── copyright.txt
│ └── delivery-checks.sh
├── pom.xml
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ ├── module-info.java
│ │ │ └── org/
│ │ │ └── eclipse/
│ │ │ └── yasson/
│ │ │ ├── FieldAccessStrategy.java
│ │ │ ├── ImplementationClass.java
│ │ │ ├── JsonBindingProvider.java
│ │ │ ├── YassonConfig.java
│ │ │ ├── YassonJsonb.java
│ │ │ ├── YassonProperties.java
│ │ │ ├── internal/
│ │ │ │ ├── AnnotationFinder.java
│ │ │ │ ├── AnnotationIntrospector.java
│ │ │ │ ├── BuiltInTypes.java
│ │ │ │ ├── ClassMultiReleaseExtension.java
│ │ │ │ ├── ClassParser.java
│ │ │ │ ├── ComponentMatcher.java
│ │ │ │ ├── ConstructorPropertiesAnnotationIntrospector.java
│ │ │ │ ├── DeserializationContextImpl.java
│ │ │ │ ├── InstanceCreator.java
│ │ │ │ ├── JsonBinding.java
│ │ │ │ ├── JsonBindingBuilder.java
│ │ │ │ ├── JsonbConfigProperties.java
│ │ │ │ ├── JsonbContext.java
│ │ │ │ ├── JsonbDateFormatter.java
│ │ │ │ ├── JsonbNumberFormatter.java
│ │ │ │ ├── MappingContext.java
│ │ │ │ ├── ProcessingContext.java
│ │ │ │ ├── ReflectionUtils.java
│ │ │ │ ├── ResolvedParameterizedType.java
│ │ │ │ ├── SerializationContextImpl.java
│ │ │ │ ├── VariableTypeInheritanceSearch.java
│ │ │ │ ├── components/
│ │ │ │ │ ├── AbstractComponentBinding.java
│ │ │ │ │ ├── AdapterBinding.java
│ │ │ │ │ ├── BeanManagerInstanceCreator.java
│ │ │ │ │ ├── ComponentBindings.java
│ │ │ │ │ ├── DefaultConstructorCreator.java
│ │ │ │ │ ├── DeserializerBinding.java
│ │ │ │ │ ├── JsonbComponentInstanceCreatorFactory.java
│ │ │ │ │ └── SerializerBinding.java
│ │ │ │ ├── deserializer/
│ │ │ │ │ ├── AdapterDeserializer.java
│ │ │ │ │ ├── ArrayDeserializer.java
│ │ │ │ │ ├── ArrayInstanceCreator.java
│ │ │ │ │ ├── CollectionDeserializer.java
│ │ │ │ │ ├── CollectionInstanceCreator.java
│ │ │ │ │ ├── ContextSwitcher.java
│ │ │ │ │ ├── CyclicReferenceDeserializer.java
│ │ │ │ │ ├── DefaultObjectInstanceCreator.java
│ │ │ │ │ ├── DeferredDeserializer.java
│ │ │ │ │ ├── DeserializationModelCreator.java
│ │ │ │ │ ├── InheritanceInstanceCreator.java
│ │ │ │ │ ├── JsonbCreatorDeserializer.java
│ │ │ │ │ ├── JustReturn.java
│ │ │ │ │ ├── MapDeserializer.java
│ │ │ │ │ ├── MapInstanceCreator.java
│ │ │ │ │ ├── ModelDeserializer.java
│ │ │ │ │ ├── NullCheckDeserializer.java
│ │ │ │ │ ├── ObjectDeserializer.java
│ │ │ │ │ ├── OptionalDeserializer.java
│ │ │ │ │ ├── PositionChecker.java
│ │ │ │ │ ├── RequiredCreatorParameter.java
│ │ │ │ │ ├── UserDefinedDeserializer.java
│ │ │ │ │ ├── ValueExtractor.java
│ │ │ │ │ ├── ValueSetterDeserializer.java
│ │ │ │ │ ├── YassonParser.java
│ │ │ │ │ └── types/
│ │ │ │ │ ├── AbstractDateDeserializer.java
│ │ │ │ │ ├── AbstractNumberDeserializer.java
│ │ │ │ │ ├── BigDecimalDeserializer.java
│ │ │ │ │ ├── BigIntegerDeserializer.java
│ │ │ │ │ ├── BooleanDeserializer.java
│ │ │ │ │ ├── ByteDeserializer.java
│ │ │ │ │ ├── CalendarDeserializer.java
│ │ │ │ │ ├── CharDeserializer.java
│ │ │ │ │ ├── DateDeserializer.java
│ │ │ │ │ ├── DoubleDeserializer.java
│ │ │ │ │ ├── DurationDeserializer.java
│ │ │ │ │ ├── EnumDeserializer.java
│ │ │ │ │ ├── FloatDeserializer.java
│ │ │ │ │ ├── InstantDeserializer.java
│ │ │ │ │ ├── IntegerDeserializer.java
│ │ │ │ │ ├── JsonValueDeserializer.java
│ │ │ │ │ ├── LocalDateDeserializer.java
│ │ │ │ │ ├── LocalDateTimeDeserializer.java
│ │ │ │ │ ├── LocalTimeDeserializer.java
│ │ │ │ │ ├── LongDeserializer.java
│ │ │ │ │ ├── MonthDayTypeDeserializer.java
│ │ │ │ │ ├── NumberDeserializer.java
│ │ │ │ │ ├── ObjectTypeDeserializer.java
│ │ │ │ │ ├── OffsetDateTimeDeserializer.java
│ │ │ │ │ ├── OffsetTimeDeserializer.java
│ │ │ │ │ ├── OptionalDoubleDeserializer.java
│ │ │ │ │ ├── OptionalIntDeserializer.java
│ │ │ │ │ ├── OptionalLongDeserializer.java
│ │ │ │ │ ├── PathDeserializer.java
│ │ │ │ │ ├── PeriodDeserializer.java
│ │ │ │ │ ├── ShortDeserializer.java
│ │ │ │ │ ├── SqlDateDeserializer.java
│ │ │ │ │ ├── SqlTimestampDeserializer.java
│ │ │ │ │ ├── StringDeserializer.java
│ │ │ │ │ ├── TimeZoneDeserializer.java
│ │ │ │ │ ├── TypeDeserializer.java
│ │ │ │ │ ├── TypeDeserializerBuilder.java
│ │ │ │ │ ├── TypeDeserializers.java
│ │ │ │ │ ├── UriDeserializer.java
│ │ │ │ │ ├── UrlDeserializer.java
│ │ │ │ │ ├── UuidDeserializer.java
│ │ │ │ │ ├── XmlGregorianCalendarDeserializer.java
│ │ │ │ │ ├── YearMonthTypeDeserializer.java
│ │ │ │ │ ├── ZoneIdDeserializer.java
│ │ │ │ │ ├── ZoneOffsetDeserializer.java
│ │ │ │ │ └── ZonedDateTimeDeserializer.java
│ │ │ │ ├── jsonstructure/
│ │ │ │ │ ├── JsonArrayBuilder.java
│ │ │ │ │ ├── JsonArrayIterator.java
│ │ │ │ │ ├── JsonGeneratorToStructureAdapter.java
│ │ │ │ │ ├── JsonObjectBuilder.java
│ │ │ │ │ ├── JsonObjectIterator.java
│ │ │ │ │ ├── JsonStructureBuilder.java
│ │ │ │ │ ├── JsonStructureIterator.java
│ │ │ │ │ └── JsonStructureToParserAdapter.java
│ │ │ │ ├── model/
│ │ │ │ │ ├── AnnotationTarget.java
│ │ │ │ │ ├── ClassModel.java
│ │ │ │ │ ├── CreatorModel.java
│ │ │ │ │ ├── JsonbAnnotatedElement.java
│ │ │ │ │ ├── JsonbCreator.java
│ │ │ │ │ ├── ModulesUtil.java
│ │ │ │ │ ├── Property.java
│ │ │ │ │ ├── PropertyModel.java
│ │ │ │ │ ├── ReverseTreeMap.java
│ │ │ │ │ └── customization/
│ │ │ │ │ ├── ClassCustomization.java
│ │ │ │ │ ├── ComponentBoundCustomization.java
│ │ │ │ │ ├── CreatorCustomization.java
│ │ │ │ │ ├── Customization.java
│ │ │ │ │ ├── CustomizationBase.java
│ │ │ │ │ ├── PropertyCustomization.java
│ │ │ │ │ ├── PropertyOrdering.java
│ │ │ │ │ ├── StrategiesProvider.java
│ │ │ │ │ ├── TypeInheritanceConfiguration.java
│ │ │ │ │ └── VisibilityStrategiesProvider.java
│ │ │ │ ├── properties/
│ │ │ │ │ ├── MessageKeys.java
│ │ │ │ │ └── Messages.java
│ │ │ │ └── serializer/
│ │ │ │ ├── AbstractSerializer.java
│ │ │ │ ├── AdapterSerializer.java
│ │ │ │ ├── ArraySerializer.java
│ │ │ │ ├── CollectionSerializer.java
│ │ │ │ ├── CyclicReferenceSerializer.java
│ │ │ │ ├── KeyWriter.java
│ │ │ │ ├── MapSerializer.java
│ │ │ │ ├── ModelSerializer.java
│ │ │ │ ├── NullSerializer.java
│ │ │ │ ├── NullVisibilitySwitcher.java
│ │ │ │ ├── ObjectSerializer.java
│ │ │ │ ├── OptionalSerializer.java
│ │ │ │ ├── RecursionChecker.java
│ │ │ │ ├── SerializationModelCreator.java
│ │ │ │ ├── SerializerBuilderParams.java
│ │ │ │ ├── UserDefinedSerializer.java
│ │ │ │ ├── ValueGetterSerializer.java
│ │ │ │ ├── YassonGenerator.java
│ │ │ │ └── types/
│ │ │ │ ├── AbstractDateSerializer.java
│ │ │ │ ├── AbstractNumberSerializer.java
│ │ │ │ ├── BigDecimalSerializer.java
│ │ │ │ ├── BigIntegerSerializer.java
│ │ │ │ ├── BooleanSerializer.java
│ │ │ │ ├── ByteSerializer.java
│ │ │ │ ├── CalendarSerializer.java
│ │ │ │ ├── CharSerializer.java
│ │ │ │ ├── DateSerializer.java
│ │ │ │ ├── DoubleSerializer.java
│ │ │ │ ├── DurationSerializer.java
│ │ │ │ ├── EnumSerializer.java
│ │ │ │ ├── FloatSerializer.java
│ │ │ │ ├── InstantSerializer.java
│ │ │ │ ├── IntegerSerializer.java
│ │ │ │ ├── JsonValueSerializer.java
│ │ │ │ ├── LocalDateSerializer.java
│ │ │ │ ├── LocalDateTimeSerializer.java
│ │ │ │ ├── LocalTimeSerializer.java
│ │ │ │ ├── LongSerializer.java
│ │ │ │ ├── MonthDayTypeSerializer.java
│ │ │ │ ├── NumberSerializer.java
│ │ │ │ ├── ObjectTypeSerializer.java
│ │ │ │ ├── OffsetDateTimeSerializer.java
│ │ │ │ ├── OffsetTimeSerializer.java
│ │ │ │ ├── OptionalDoubleSerializer.java
│ │ │ │ ├── OptionalIntSerializer.java
│ │ │ │ ├── OptionalLongSerializer.java
│ │ │ │ ├── PathSerializer.java
│ │ │ │ ├── PeriodSerializer.java
│ │ │ │ ├── ShortSerializer.java
│ │ │ │ ├── SqlDateSerializer.java
│ │ │ │ ├── SqlTimestampSerializer.java
│ │ │ │ ├── StringSerializer.java
│ │ │ │ ├── TimeZoneSerializer.java
│ │ │ │ ├── TypeSerializer.java
│ │ │ │ ├── TypeSerializerBuilder.java
│ │ │ │ ├── TypeSerializers.java
│ │ │ │ ├── UriSerializer.java
│ │ │ │ ├── UrlSerializer.java
│ │ │ │ ├── UuidSerializer.java
│ │ │ │ ├── XmlGregorianCalendarSerializer.java
│ │ │ │ ├── YearMonthTypeSerializer.java
│ │ │ │ ├── ZoneIdSerializer.java
│ │ │ │ ├── ZoneOffsetSerializer.java
│ │ │ │ └── ZonedDateTimeSerializer.java
│ │ │ └── spi/
│ │ │ └── JsonbComponentInstanceCreator.java
│ │ ├── java16/
│ │ │ └── org/
│ │ │ └── eclipse/
│ │ │ └── yasson/
│ │ │ └── internal/
│ │ │ └── ClassMultiReleaseExtension.java
│ │ └── resources/
│ │ ├── META-INF/
│ │ │ ├── native-image/
│ │ │ │ └── org.eclipse/
│ │ │ │ └── yasson/
│ │ │ │ └── native-image.properties
│ │ │ └── services/
│ │ │ └── jakarta.json.bind.spi.JsonbProvider
│ │ └── yasson-messages.properties
│ └── test/
│ ├── java/
│ │ ├── PackagelessClassTest.java
│ │ ├── PackagelessModel.java
│ │ └── org/
│ │ └── eclipse/
│ │ └── yasson/
│ │ ├── Assertions.java
│ │ ├── DefaultGetterInInterface.java
│ │ ├── FieldAccessStrategyTest.java
│ │ ├── Issue454Test.java
│ │ ├── Issue456Test.java
│ │ ├── JavaxNamingExcludedTest.java
│ │ ├── Jsonbs.java
│ │ ├── SimpleTest.java
│ │ ├── TestTypeToken.java
│ │ ├── YassonConfigTest.java
│ │ ├── adapters/
│ │ │ ├── AdaptersTest.java
│ │ │ ├── JsonbTypeAdapterTest.java
│ │ │ └── model/
│ │ │ ├── AdaptedPojo.java
│ │ │ ├── Author.java
│ │ │ ├── Box.java
│ │ │ ├── BoxToCrateCompatibleGenericsAdapter.java
│ │ │ ├── BoxToCratePropagatedIntegerStringAdapter.java
│ │ │ ├── BoxToCratePropagatedTypeArgsAdapter.java
│ │ │ ├── BoxToJsonObjectAdapter.java
│ │ │ ├── BoxWithAdapter.java
│ │ │ ├── BoxWithAdapterAdapter.java
│ │ │ ├── BoxWithDeserializer.java
│ │ │ ├── BoxWithDeserializerDeserializer.java
│ │ │ ├── BoxWithSerializer.java
│ │ │ ├── BoxWithSerializerSerializer.java
│ │ │ ├── Chain.java
│ │ │ ├── ChainAdapter.java
│ │ │ ├── ChainSerializer.java
│ │ │ ├── Crate.java
│ │ │ ├── FirstNameAdapter.java
│ │ │ ├── Foo.java
│ │ │ ├── FooAdapter.java
│ │ │ ├── FooSerializer.java
│ │ │ ├── GenericBox.java
│ │ │ ├── GenericCrate.java
│ │ │ ├── IntegerListToStringAdapter.java
│ │ │ ├── JsonObjectPojo.java
│ │ │ ├── LocalPolymorphicAdapter.java
│ │ │ ├── LocalTypeWrapper.java
│ │ │ ├── MultiinterfaceAdapter.java
│ │ │ ├── MultilevelAdapterClass.java
│ │ │ ├── NumberAdapter.java
│ │ │ ├── ReturnNullAdapter.java
│ │ │ ├── SerializableAdapter.java
│ │ │ ├── SupertypeAdapterPojo.java
│ │ │ ├── UUIDContainer.java
│ │ │ ├── UUIDMapperClsBased.java
│ │ │ └── UUIDMapperIfcBased.java
│ │ ├── customization/
│ │ │ ├── AnnotationInheritanceTest.java
│ │ │ ├── EncodingTest.java
│ │ │ ├── ImplementationClassTest.java
│ │ │ ├── InterfaceAnnotationsTest.java
│ │ │ ├── JsonbCreatorTest.java
│ │ │ ├── JsonbDateFormatterTest.java
│ │ │ ├── JsonbNillableTest.java
│ │ │ ├── JsonbPropertyTest.java
│ │ │ ├── JsonbPropertyVisibilityStrategyTest.java
│ │ │ ├── NumberFormatTest.java
│ │ │ ├── PrettyPrintTest.java
│ │ │ ├── PropertyOrderTest.java
│ │ │ ├── YassonSpecificConfigTests.java
│ │ │ ├── model/
│ │ │ │ ├── Animal.java
│ │ │ │ ├── CollectionsWithFormatters.java
│ │ │ │ ├── CreatorConstructorPojo.java
│ │ │ │ ├── CreatorFactoryMethodPojo.java
│ │ │ │ ├── CreatorIncompatibleTypePojo.java
│ │ │ │ ├── CreatorMultipleDeclarationErrorPojo.java
│ │ │ │ ├── CreatorPackagePrivateConstructor.java
│ │ │ │ ├── CreatorWithoutJavabeanProperty.java
│ │ │ │ ├── CreatorWithoutJsonbProperty.java
│ │ │ │ ├── CreatorWithoutJsonbProperty1.java
│ │ │ │ ├── DateFormatPojo.java
│ │ │ │ ├── DateFormatPojoWithClassLevelFormatter.java
│ │ │ │ ├── Dog.java
│ │ │ │ ├── FieldCustomOrder.java
│ │ │ │ ├── FieldCustomOrderWrapper.java
│ │ │ │ ├── FieldOrder.java
│ │ │ │ ├── FieldOrderNameAnnotation.java
│ │ │ │ ├── FieldSpecificOrder.java
│ │ │ │ ├── ImplementationClassPojo.java
│ │ │ │ ├── InheritedAnnotationsPojo.java
│ │ │ │ ├── InheritsJsonbProperty.java
│ │ │ │ ├── InheritsNillable.java
│ │ │ │ ├── InheritsNillableRecursion.java
│ │ │ │ ├── InterfacedPojoA.java
│ │ │ │ ├── InterfacedPojoAbsImpl.java
│ │ │ │ ├── InterfacedPojoB.java
│ │ │ │ ├── InterfacedPojoC.java
│ │ │ │ ├── InterfacedPojoImpl.java
│ │ │ │ ├── JsonbNillableClassFirstLevel.java
│ │ │ │ ├── JsonbNillableClassSecondLevel.java
│ │ │ │ ├── JsonbNillableInterfaceBase.java
│ │ │ │ ├── JsonbNillableInterfaceBaseOne.java
│ │ │ │ ├── JsonbNillableInterfaceBaseTwo.java
│ │ │ │ ├── JsonbNillableOverriddenWithJsonbProperty.java
│ │ │ │ ├── JsonbNillableOverridesClass.java
│ │ │ │ ├── JsonbNillableOverridesInterface.java
│ │ │ │ ├── JsonbNillableValue.java
│ │ │ │ ├── JsonbPropertyName.java
│ │ │ │ ├── JsonbPropertyNameCollision.java
│ │ │ │ ├── JsonbPropertyNillable.java
│ │ │ │ ├── NumberFormatPojo.java
│ │ │ │ ├── NumberFormatPojoWithoutClassLevelFormatter.java
│ │ │ │ ├── ParameterNameTester.java
│ │ │ │ ├── RenamedPropertiesContainer.java
│ │ │ │ ├── TrimmedDatePojo.java
│ │ │ │ └── packagelevelannotations/
│ │ │ │ ├── JsonbNillablePackageLevel.java
│ │ │ │ ├── PackageLevelOverriddenWithClassLevel.java
│ │ │ │ └── package-info.java
│ │ │ ├── polymorphism/
│ │ │ │ ├── AnnotationPolymorphismTest.java
│ │ │ │ ├── MultiplePolymorphicInfoTest.java
│ │ │ │ └── NestedPolymorphismTest.java
│ │ │ └── transients/
│ │ │ ├── JsonbTransientTest.java
│ │ │ └── models/
│ │ │ ├── JsonbTransientCollisionOnGetter.java
│ │ │ ├── JsonbTransientCollisionOnProperty.java
│ │ │ ├── JsonbTransientCollisionOnPropertyAndGetter.java
│ │ │ ├── JsonbTransientCollisionOnPropertyAndGetterAndSetter.java
│ │ │ ├── JsonbTransientCollisionOnPropertyAndSetter.java
│ │ │ ├── JsonbTransientCollisionOnSetter.java
│ │ │ ├── JsonbTransientValue.java
│ │ │ ├── TransientGetterNoField.java
│ │ │ ├── TransientGetterPlusCustomizationAnnotatedFieldContainer.java
│ │ │ ├── TransientSetterPlusCustomizationAnnotatedFieldContainer.java
│ │ │ └── TransientSetterPlusCustomizationAnnotatedGetterContainer.java
│ │ ├── defaultmapping/
│ │ │ ├── EnumTest.java
│ │ │ ├── IJsonTest.java
│ │ │ ├── anonymous/
│ │ │ │ ├── AnonymousClassTest.java
│ │ │ │ └── OuterPojo.java
│ │ │ ├── basic/
│ │ │ │ ├── BasicTest.java
│ │ │ │ ├── BooleanTest.java
│ │ │ │ ├── NumberTest.java
│ │ │ │ ├── PropertyMismatchTest.java
│ │ │ │ ├── SingleValueTest.java
│ │ │ │ ├── UnqualifiedPropertiesTest.java
│ │ │ │ └── model/
│ │ │ │ ├── BigDecimalInNumber.java
│ │ │ │ └── BooleanModel.java
│ │ │ ├── collections/
│ │ │ │ ├── ArrayTest.java
│ │ │ │ ├── CollectionsTest.java
│ │ │ │ ├── Language.java
│ │ │ │ └── MapKeyTypesTest.java
│ │ │ ├── dates/
│ │ │ │ ├── DatesTest.java
│ │ │ │ └── model/
│ │ │ │ ├── AbstractDateTimePojo.java
│ │ │ │ ├── CalendarPojo.java
│ │ │ │ ├── ClassLevelDateAnnotation.java
│ │ │ │ ├── ClassLevelDateAnnotationParent.java
│ │ │ │ ├── CollectionDatePojo.java
│ │ │ │ ├── DatePojo.java
│ │ │ │ ├── DateWithZonePojo.java
│ │ │ │ ├── InstantPojo.java
│ │ │ │ ├── LocalDatePojo.java
│ │ │ │ ├── LocalDateTimePojo.java
│ │ │ │ ├── LocalTimePojo.java
│ │ │ │ ├── MonthDayPojo.java
│ │ │ │ ├── OffsetDateTimePojo.java
│ │ │ │ ├── OffsetTimePojo.java
│ │ │ │ ├── YearMonthPojo.java
│ │ │ │ └── ZonedDateTimePojo.java
│ │ │ ├── generics/
│ │ │ │ ├── GenericsTest.java
│ │ │ │ └── model/
│ │ │ │ ├── AbstractGenericWrapper.java
│ │ │ │ ├── AbstractMember.java
│ │ │ │ ├── AnotherGenericTestClass.java
│ │ │ │ ├── BoundedGenericClass.java
│ │ │ │ ├── Circle.java
│ │ │ │ ├── CollectionContainer.java
│ │ │ │ ├── CollectionElement.java
│ │ │ │ ├── CollectionWrapper.java
│ │ │ │ ├── ColoredCircle.java
│ │ │ │ ├── ConstructorContainer.java
│ │ │ │ ├── CyclicSubClass.java
│ │ │ │ ├── ExtendedGenericTestClass.java
│ │ │ │ ├── FinalGenericWrapper.java
│ │ │ │ ├── FinalMember.java
│ │ │ │ ├── GenericArrayClass.java
│ │ │ │ ├── GenericTestClass.java
│ │ │ │ ├── GenericWithUnboundedWildcardClass.java
│ │ │ │ ├── LowerBoundTypeVariableWithCollectionAttributeClass.java
│ │ │ │ ├── MiddleGenericWrapper.java
│ │ │ │ ├── MultiLevelExtendedGenericTestClass.java
│ │ │ │ ├── MultipleBoundsContainer.java
│ │ │ │ ├── MyCyclicGenericClass.java
│ │ │ │ ├── PropagatedGenericClass.java
│ │ │ │ ├── ScalarValueWrapper.java
│ │ │ │ ├── Shape.java
│ │ │ │ ├── StaticCreatorContainer.java
│ │ │ │ ├── TreeContainer.java
│ │ │ │ ├── TreeElement.java
│ │ │ │ ├── TreeTypeContainer.java
│ │ │ │ ├── TypeContainer.java
│ │ │ │ ├── WildCardClass.java
│ │ │ │ └── WildcardMultipleBoundsClass.java
│ │ │ ├── inheritance/
│ │ │ │ ├── InheritanceTest.java
│ │ │ │ └── model/
│ │ │ │ ├── AbstractZeroLevel.java
│ │ │ │ ├── FirstLevel.java
│ │ │ │ ├── PartialOverride.java
│ │ │ │ ├── PartialOverrideBase.java
│ │ │ │ ├── PropertyOrderFirst.java
│ │ │ │ ├── PropertyOrderSecond.java
│ │ │ │ ├── PropertyOrderZero.java
│ │ │ │ ├── SecondLevel.java
│ │ │ │ └── generics/
│ │ │ │ ├── AbstractZeroLevelGeneric.java
│ │ │ │ ├── AnotherGenericInterface.java
│ │ │ │ ├── ExtendsExtendsPropagatedGenericClass.java
│ │ │ │ ├── ExtendsPropagatedGenericClass.java
│ │ │ │ ├── FirstLevelGeneric.java
│ │ │ │ ├── GenericInterface.java
│ │ │ │ ├── ImplementsGenericInterfaces.java
│ │ │ │ └── SecondLevelGeneric.java
│ │ │ ├── jsonp/
│ │ │ │ ├── JsonpLong.java
│ │ │ │ ├── JsonpString.java
│ │ │ │ ├── JsonpTest.java
│ │ │ │ └── model/
│ │ │ │ └── JsonpPojo.java
│ │ │ ├── lambda/
│ │ │ │ ├── Addressable.java
│ │ │ │ ├── Cat.java
│ │ │ │ ├── LambdaExpressionTest.java
│ │ │ │ ├── Pet.java
│ │ │ │ └── Robot.java
│ │ │ ├── modifiers/
│ │ │ │ ├── ClassModifiersTest.java
│ │ │ │ ├── DefaultMappingModifiersTest.java
│ │ │ │ └── model/
│ │ │ │ ├── ChildOfPackagePrivateParent.java
│ │ │ │ ├── FieldModifiersClass.java
│ │ │ │ ├── MethodModifiersClass.java
│ │ │ │ ├── PackagePrivateParent.java
│ │ │ │ ├── Person.java
│ │ │ │ ├── PrivateConstructorClass.java
│ │ │ │ └── ProtectedConstructorClass.java
│ │ │ ├── properties/
│ │ │ │ └── PropertiesTest.java
│ │ │ ├── specific/
│ │ │ │ ├── CustomerTest.java
│ │ │ │ ├── JsonStreamsTest.java
│ │ │ │ ├── NullTest.java
│ │ │ │ ├── ObjectGraphTest.java
│ │ │ │ ├── OptionalTest.java
│ │ │ │ ├── RecursiveReferenceTest.java
│ │ │ │ ├── SpecificTest.java
│ │ │ │ ├── UnmarshallingUnsupportedTypesTest.java
│ │ │ │ └── model/
│ │ │ │ ├── Address.java
│ │ │ │ ├── ClassWithUnsupportedFields.java
│ │ │ │ ├── CustomUnsupportedInterface.java
│ │ │ │ ├── Customer.java
│ │ │ │ ├── NotMatchingGettersAndSetters.java
│ │ │ │ ├── OptionalWrapper.java
│ │ │ │ ├── SpecificOptionalWrapper.java
│ │ │ │ ├── Street.java
│ │ │ │ ├── StreetWithPrimitives.java
│ │ │ │ └── SupportedTypes.java
│ │ │ └── typeConvertors/
│ │ │ ├── DefaultSerializersTest.java
│ │ │ └── model/
│ │ │ ├── BigDecimalWrapper.java
│ │ │ ├── BigIntegerWrapper.java
│ │ │ ├── ByteArrayWrapper.java
│ │ │ ├── CalendarWrapper.java
│ │ │ └── StringWrapper.java
│ │ ├── documented/
│ │ │ └── DocumentationExampleTest.java
│ │ ├── internal/
│ │ │ ├── AnnotationFinderTest.java
│ │ │ ├── AnnotationFinderTestFixtures.java
│ │ │ ├── AnnotationIntrospectorTest.java
│ │ │ ├── AnnotationIntrospectorTestAsserts.java
│ │ │ ├── AnnotationIntrospectorTestFixtures.java
│ │ │ ├── AnnotationIntrospectorWithoutOptionalModulesTest.java
│ │ │ ├── ClassParserTest.java
│ │ │ ├── CollectionsWithJavaBaseTypesTest.java
│ │ │ ├── ConstructorPropertiesAnnotationIntrospectorTest.java
│ │ │ ├── JsonBindingTest.java
│ │ │ ├── ReflectionUtilsTest.java
│ │ │ ├── cdi/
│ │ │ │ ├── AdaptedPojo.java
│ │ │ │ ├── CalledMethods.java
│ │ │ │ ├── CdiDependentAdapter.java
│ │ │ │ ├── CdiInjectionTest.java
│ │ │ │ ├── CdiTestService.java
│ │ │ │ ├── Hello1.java
│ │ │ │ ├── Hello2.java
│ │ │ │ ├── HelloService1.java
│ │ │ │ ├── HelloService2.java
│ │ │ │ ├── IHelloService.java
│ │ │ │ ├── JndiBeanManager.java
│ │ │ │ ├── MethodCalledEvent.java
│ │ │ │ ├── MockInjectionTarget.java
│ │ │ │ ├── MockInjectionTargetFactory.java
│ │ │ │ ├── MockJndiContext.java
│ │ │ │ ├── MockJndiContextFactory.java
│ │ │ │ ├── NonCdiAdapter.java
│ │ │ │ └── WeldManager.java
│ │ │ ├── concurrent/
│ │ │ │ ├── JsonProcessingResult.java
│ │ │ │ ├── MarshallerTask.java
│ │ │ │ ├── MarshallerTaskResult.java
│ │ │ │ ├── MultiTenancyTest.java
│ │ │ │ ├── ResultChecker.java
│ │ │ │ └── UnmarshallerTask.java
│ │ │ ├── model/
│ │ │ │ ├── ModulesUtil.java
│ │ │ │ └── customization/
│ │ │ │ └── naming/
│ │ │ │ ├── NamingPojo.java
│ │ │ │ └── PropertyNamingStrategyTest.java
│ │ │ └── serializer/
│ │ │ └── ObjectDeserializerTest.java
│ │ ├── jsonpsubstitution/
│ │ │ ├── AdaptedJsonParser.java
│ │ │ ├── PreinstantiatedJsonpTest.java
│ │ │ └── SuffixJsonGenerator.java
│ │ ├── jsonstructure/
│ │ │ ├── InnerPojo.java
│ │ │ ├── InnerPojoDeserializer.java
│ │ │ ├── InnerPojoSerializer.java
│ │ │ ├── Issue673.java
│ │ │ ├── JsonGeneratorToStructureAdapterTest.java
│ │ │ ├── JsonStructureToParserAdapterTest.java
│ │ │ └── Pojo.java
│ │ ├── logger/
│ │ │ └── JsonbLoggerFormatter.java
│ │ ├── records/
│ │ │ ├── Car.java
│ │ │ ├── CarWithCreateNamingStrategyTest.java
│ │ │ ├── CarWithCreator.java
│ │ │ ├── CarWithDefaultConstructor.java
│ │ │ ├── CarWithExtraMethod.java
│ │ │ ├── CarWithGenerics.java
│ │ │ ├── CarWithMultipleConstructors.java
│ │ │ ├── CarWithMultipleConstructorsAndCreator.java
│ │ │ ├── CarWithoutAnnotations.java
│ │ │ ├── Color.java
│ │ │ └── RecordTest.java
│ │ └── serializers/
│ │ ├── MapToEntriesArraySerializerTest.java
│ │ ├── MapToObjectSerializerTest.java
│ │ ├── SerializersTest.java
│ │ ├── TypeDeserializerOnContainersTest.java
│ │ ├── TypeSerializerOnContainersTest.java
│ │ └── model/
│ │ ├── AbstractJsonbSerializer.java
│ │ ├── AnnotatedGenericWithSerializerType.java
│ │ ├── AnnotatedGenericWithSerializerTypeDeserializer.java
│ │ ├── AnnotatedGenericWithSerializerTypeSerializer.java
│ │ ├── AnnotatedWithSerializerType.java
│ │ ├── AnnotatedWithSerializerTypeDeserializer.java
│ │ ├── AnnotatedWithSerializerTypeSerializer.java
│ │ ├── AnnotatedWithSerializerTypeSerializerOverride.java
│ │ ├── Author.java
│ │ ├── Box.java
│ │ ├── BoxWithAnnotations.java
│ │ ├── Containee.java
│ │ ├── ContaineeDeserializer.java
│ │ ├── ContaineeSerializer.java
│ │ ├── Container.java
│ │ ├── Crate.java
│ │ ├── CrateDeserializer.java
│ │ ├── CrateDeserializerWithConversion.java
│ │ ├── CrateInner.java
│ │ ├── CrateJsonObjectDeserializer.java
│ │ ├── CrateSerializer.java
│ │ ├── CrateSerializerWithConversion.java
│ │ ├── ExplicitJsonbSerializer.java
│ │ ├── GenericPropertyPojo.java
│ │ ├── GenericPropertyPojoSerializer.java
│ │ ├── ImplicitJsonbSerializer.java
│ │ ├── NumberDeserializer.java
│ │ ├── NumberSerializer.java
│ │ ├── Pokemon.java
│ │ ├── RecursiveDeserializer.java
│ │ ├── RecursiveSerializer.java
│ │ ├── SimpleAnnotatedSerializedArrayContainer.java
│ │ ├── SimpleContainer.java
│ │ ├── SimpleContainerArrayDeserializer.java
│ │ ├── SimpleContainerArraySerializer.java
│ │ ├── StringPaddingSerializer.java
│ │ ├── StringWrapper.java
│ │ ├── SupertypeSerializerPojo.java
│ │ └── Trainer.java
│ └── resources/
│ ├── META-INF/
│ │ └── beans.xml
│ ├── jndi.properties
│ ├── logging.properties
│ ├── test.policy
│ └── yasson-messages_cs.properties
├── yasson-jmh/
│ ├── .gitignore
│ ├── README.md
│ ├── pom.xml
│ └── src/
│ └── main/
│ └── java/
│ └── org/
│ └── eclipse/
│ └── yasson/
│ └── jmh/
│ ├── CollectionsTest.java
│ ├── ScalarDataTest.java
│ ├── TenPropertySerializationTest.java
│ └── model/
│ ├── CollectionsData.java
│ ├── ScalarData.java
│ └── TenPropertyData.java
└── yasson-tck/
├── .gitignore
└── pom.xml
================================================
FILE CONTENTS
================================================
================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is. If there is an Exception, please include the full stack trace.
**To Reproduce**
Steps to reproduce the bug
**Expected behavior**
A clear and concise description of what you expected to happen.
**System information:**
- OS: [e.g. Linux, Windows, Mac]
- Java Version: [e.g. 8, 11]
- Yasson Version: [e.g. 1.0.5]
**Additional context**
Add any other context about the problem here.
================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.md
================================================
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
================================================
FILE: .github/ISSUE_TEMPLATE/other-issue.md
================================================
---
name: Other issue
about: Not a bug or a feature request
title: ''
labels: ''
assignees: ''
---
================================================
FILE: .github/dependabot.yml
================================================
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
# TODO - add maven dependabot if community agrees it's useful
================================================
FILE: .github/workflows/maven.yml
================================================
#
# Copyright (c) 2021, 2026 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0,
# or the Eclipse Distribution License v. 1.0 which is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
#
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
#
name: Yasson
on:
push:
branches:
- 'main'
- '*-RELEASE'
pull_request:
branches:
- 'main'
- '*-RELEASE'
jobs:
build:
name: Test on JDK ${{ matrix.java_version }}
runs-on: ubuntu-latest
strategy:
matrix:
java_version: [ 11, 17, 21 ]
steps:
- name: Checkout for build
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up compile JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with: #Compile java needs to be the highest to ensure proper compilation of the multi-release jar
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Copyright
run: bash etc/copyright.sh
- name: Checkstyle
run: mvn -B checkstyle:checkstyle
- name: Yasson install
run: mvn -U -C clean install -DskipTests
- name: Yasson tests
run: mvn -U -B -C -Dmaven.javadoc.skip=true verify
- name: JSONB-API TCK
run: cd yasson-tck && mvn -U -B test -DargLine="-Djava.locale.providers=COMPAT"
================================================
FILE: .gitignore
================================================
/target/
/target-tck/
.classpath
.project
.idea/
.settings/
/.DS_Store
bin/
.envrc
.vscode/
================================================
FILE: CONTRIBUTING.md
================================================
# Contributing to Eclipse Yasson
Thanks for your interest in this project.
## Project description
Eclipse Yasson is a Java framework which provides a standard binding layer
between Java classes and JSON documents. This is similar to what JAXB is doing
in the XML world. Yasson is an official reference implementation of JSON Binding
(JSR-367).
* https://projects.eclipse.org/projects/ee4j.yasson
## Developer resources
Information regarding source code management, builds, coding standards, and
more.
* https://projects.eclipse.org/projects/ee4j.yasson/developer
The project maintains the following source code repositories
* https://github.com/eclipse/yasson
* https://github.com/eclipse-ee4j/yasson
## Eclipse Contributor Agreement
Before your contribution can be accepted by the project team contributors must
electronically sign the Eclipse Contributor Agreement (ECA).
* http://www.eclipse.org/legal/ECA.php
Commits that are provided by non-committers must have a Signed-off-by field in
the footer indicating that the author is aware of the terms by which the
contribution has been provided to the project. The non-committer must
additionally have an Eclipse Foundation account and must have a signed Eclipse
Contributor Agreement (ECA) on file.
For more information, please see the Eclipse Committer Handbook:
https://www.eclipse.org/projects/handbook/#resources-commit
## Contact
Contact the project developers via the project's "dev" list.
* https://dev.eclipse.org/mailman/listinfo/yasson-dev
================================================
FILE: LICENSE.md
================================================
# Eclipse Public License - v 2.0
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (“AGREEMENT”). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
1. DEFINITIONS
“Contribution” means:
a) in the case of the initial Contributor, the initial content Distributed under this Agreement, and
b) in the case of each subsequent Contributor:
i) changes to the Program, and
ii) additions to the Program;
where such changes and/or additions to the Program originate from and are Distributed by that particular Contributor. A Contribution “originates” from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include changes or additions to the Program that are not Modified Works.
“Contributor” means any person or entity that Distributes the Program.
“Licensed Patents” mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
“Program” means the Contributions Distributed in accordance with this Agreement.
“Recipient” means anyone who receives the Program under this Agreement or any Secondary License (as applicable), including Contributors.
“Derivative Works” shall mean any work, whether in Source Code or other form, that is based on (or derived from) the Program and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship.
“Modified Works” shall mean any work in Source Code or other form that results from an addition to, deletion from, or modification of the contents of the Program, including, for purposes of clarity any new file in Source Code form that contains any contents of the Program. Modified Works shall not include works that contain only declarations, interfaces, types, classes, structures, or files of the Program solely in each case in order to link to, bind by name, or subclass the Program or Modified Works thereof.
“Distribute” means the acts of a) distributing or b) making available in any manner that enables the transfer of a copy.
“Source Code” means the form of a Program preferred for making modifications, including but not limited to software source code, documentation source, and configuration files.
“Secondary License” means either the GNU General Public License, Version 2.0, or any later versions of that license, including any exceptions or additional permissions as identified by the initial Contributor.
2. GRANT OF RIGHTS
a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, Distribute and sublicense the Contribution of such Contributor, if any, and such Derivative Works.
b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in Source Code or other form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to Distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
e) Notwithstanding the terms of any Secondary License, no Contributor makes additional grants to any Recipient (other than those set forth in this Agreement) as a result of such Recipient's receipt of the Program under the terms of a Secondary License (if permitted under the terms of Section 3).
3. REQUIREMENTS
3.1 If a Contributor Distributes the Program in any form, then:
a) the Program must also be made available as Source Code, in accordance with section 3.2, and the Contributor must accompany the Program with a statement that the Source Code for the Program is available under this Agreement, and informs Recipients how to obtain it in a reasonable manner on or through a medium customarily used for software exchange; and
b) the Contributor may Distribute the Program under a license different than this Agreement, provided that such license:
i) effectively disclaims on behalf of all other Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
ii) effectively excludes on behalf of all other Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
iii) does not attempt to limit or alter the recipients' rights in the Source Code under section 3.2; and
iv) requires any subsequent distribution of the Program by any party to be under a license that satisfies the requirements of this section 3.
3.2 When the Program is Distributed as Source Code:
a) it must be made available under this Agreement, or if the Program (i) is combined with other material in a separate file or files made available under a Secondary License, and (ii) the initial Contributor attached to the Source Code the notice described in Exhibit A of this Agreement, then the Program may be made available under the terms of such Secondary Licenses, and
b) a copy of this Agreement must be included with each copy of the Program.
3.3 Contributors may not remove or alter any copyright, patent, trademark, attribution notices, disclaimers of warranty, or limitations of liability (‘notices’) contained within the Program from any copy of the Program which they Distribute, provided that Contributors may add their own appropriate notices.
4. COMMERCIAL DISTRIBUTION
Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor (“Commercial Contributor”) hereby agrees to defend and indemnify every other Contributor (“Indemnified Contributor”) against any losses, damages and costs (collectively “Losses”) arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
5. NO WARRANTY
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
6. DISCLAIMER OF LIABILITY
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
7. GENERAL
If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be Distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to Distribute the Program (including its Contributions) under the new version.
Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. Nothing in this Agreement is intended to be enforceable by any entity that is not a Contributor or Recipient. No third-party beneficiary rights are created under this Agreement.
Exhibit A – Form of Secondary Licenses Notice
“This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: {name license(s), version(s), and exceptions or additional permissions here}.”
Simply including a copy of this Agreement, including this Exhibit A is not sufficient to license the Source Code under Secondary Licenses.
If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.
You may add additional accurate notices of copyright ownership.
# Eclipse Distribution License - v 1.0
Copyright (c) 2007, Eclipse Foundation, Inc. and its licensors.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of the Eclipse Foundation, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
================================================
FILE: NOTICE.md
================================================
# Notices for Eclipse Yasson
This content is produced and maintained by the Eclipse Yasson project.
* Project home: https://projects.eclipse.org/projects/ee4j.yasson
## Trademarks
Eclipse Yasson is a trademark of the Eclipse Foundation.
## Copyright
All content is the property of the respective authors or their employers. For
more information regarding authorship of content, please consult the listed
source code repository logs.
## Declared Project Licenses
This program and the accompanying materials are made available under the terms
of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-v20.html, or the Eclipse Distribution License
v. 1.0 which is available at http://www.eclipse.org/org/documents/edl-v10.php.
SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
## Source Code
The project maintains the following source code repositories:
* https://github.com/eclipse/yasson
* https://github.com/eclipse-ee4j/yasson
## Third-party Content
cdi-api 2.0 (JSR 365: Contexts and Dependency Injection for Java (2.0)
## Cryptography
Content may contain encryption software. The country in which you are currently
may have restrictions on the import, possession, and use, and/or re-export to
another country, of encryption software. BEFORE using any encryption software,
please check the country's laws, regulations and policies concerning the import,
possession, or use, and re-export of encryption software, to see if this is
permitted.
================================================
FILE: README.md
================================================
# Eclipse Yasson
[](https://mvnrepository.com/artifact/org.eclipse/yasson)
[](https://gitter.im/eclipse/yasson)
[](https://www.javadoc.io/doc/org.eclipse/yasson)
[](https://github.com/eclipse-ee4j/yasson/actions/workflows/maven.yml?branch=main)
[](https://opensource.org/licenses/EPL-2.0)
Yasson is a Java framework which provides a standard binding layer between Java classes and JSON documents. This is similar to what JAXB is doing in the XML world. Yasson is an official reference implementation of JSON Binding ([JSR-367](https://jcp.org/en/jsr/detail?id=367)).
It defines a **default mapping** algorithm for converting existing Java classes to JSON suitable for the most cases:
```java
Jsonb jsonb = JsonbBuilder.create();
String result = jsonb.toJson(someObject);
```
For whom it's not enough it provides rich customization abilities through a set of **annotations** and rich **programmatic API**:
```java
// Create custom configuration
JsonbConfig config = new JsonbConfig()
.withNullValues(true)
.withFormatting(true);
// Create Jsonb with custom configuration
Jsonb jsonb = JsonbBuilder.create(config);
// Use it!
String result = jsonb.toJson(someObject);
```
## Questions?
Something not working right? Have an idea for an enhancement? Get in touch with the Yasson community in the following ways:
- [Gitter](https://gitter.im/eclipse/yasson): a free instant-messaging platform (similar to Slack) that anyone can join.
- [Stackoverflow](https://stackoverflow.com/questions/tagged/yasson): As a question tagged `[jsonb-api]` and `[yasson]`
- [Github Issues](https://github.com/eclipse-ee4j/yasson/issues/new): Open issues for enhancement ideas or bug reports
## Licenses
- [Eclipse Distribution License 1.0 (BSD)](https://projects.eclipse.org/content/eclipse-distribution-license-1.0-bsd)
- [Eclipse Public License 2.0](https://projects.eclipse.org/content/eclipse-public-license-2.0)
## Links
- Yasson home page: https://projects.eclipse.org/projects/ee4j.yasson
- JSON-B official web site: https://jakartaee.github.io/jsonb-api/
- JSON-B API & spec project: https://github.com/jakartaee/jsonb-api
- JSR-367 page on JCP site: https://jcp.org/en/jsr/detail?id=367
================================================
FILE: etc/checkstyle-suppressions.xml
================================================
================================================
FILE: etc/checkstyle.xml
================================================
================================================
FILE: etc/copyright-exclude.txt
================================================
.iml
.apt
.args
.bundle
.class
.ddl
.exe
.gif
.gitignore
.ico
.jar
.jks
.jpg
.json
.mm
.ods
.png
.svg
.war
.zip
.dat
.md
.p12
.txt
.mf
.pem
.p8
.pkcs8.pem
.p12
.bin
.vm
.policy
================================================
FILE: etc/copyright.sh
================================================
#!/bin/bash -x
#
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0,
# or the Eclipse Distribution License v. 1.0 which is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
#
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
#
die(){ echo "${1}" ; exit 1 ;}
readonly RESULT_FILE="target/copyright-check.txt"
mkdir target
mvn -q validate -Pcopyright \
> ${RESULT_FILE} || (cat ${RESULT_FILE}; die "Error running the Maven command")
grep -i "copyright" ${RESULT_FILE} \
&& die "COPYRIGHT ERROR" || echo "COPYRIGHT OK"
================================================
FILE: etc/copyright.txt
================================================
/*
* Copyright (c) YYYY Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
================================================
FILE: etc/delivery-checks.sh
================================================
#!/bin/bash
#
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0,
# or the Eclipse Distribution License v. 1.0 which is available at
# http://www.eclipse.org/org/documents/edl-v10.php.
#
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
#
mvn checkstyle:checkstyle && \
etc/copyright.sh && \
echo "Completed normally"
================================================
FILE: pom.xml
================================================
4.0.0org.eclipse.ee4jproject2.0.2org.eclipseyasson3.0.5-SNAPSHOTjarYassonEclipse Yasson. Reference implementation of JSR-367 (JSON-B).https://projects.eclipse.org/projects/ee4j.yassonUTF-811${maven.compiler.release}yasson-maven2-staging2.23.0.06.0.04.1.02.2.03.0.12.1.31.1.75.10.26.0.0.Beta13.6.03.2.04.8.5.02.45.1.93.3.13.13.03.4.13.4.13.6.33.2.5jakarta.enterprisejakarta.enterprise.cdi-api${jakarta.enterprise.cdi-api.version}jakarta.eljakarta.el-api${jakarta.el-api.version}jakarta.interceptorjakarta.interceptor-api${jakarta.interceptor-api.version}jakarta.annotationjakarta.annotation-api${jakarta.annotation-api.version}jakarta.json.bindjakarta.json.bind-api${jakarta.json.bind.version}jakarta.jsonjakarta.json-api${jakarta.json.version}org.eclipse.parssonparsson${jakarta.parson.version}jakarta.enterprisejakarta.enterprise.cdi-apitrueprovidedorg.jboss.weld.seweld-se-core${weld-se-core.version}testorg.junit.jupiterjunit-jupiter-api${junit-jupiter.version}testorg.junit.jupiterjunit-jupiter-engine${junit-jupiter.version}testorg.hamcresthamcrest${hamcrest.version}testOracle Corporationhttp://www.oracle.com/githubhttps://github.com/eclipse-ee4j/yasson/issuesYasson mailing listyasson-dev@eclipse.orghttps://dev.eclipse.org/mailman/listinfo/yasson-devhttps://dev.eclipse.org/mailman/listinfo/yasson-devhttps://dev.eclipse.org/mhonarc/lists/yasson-dev/Eclipse Public License v. 2.0http://www.eclipse.org/legal/epl-v20.htmlrepoStandard Eclipse LicenseEclipse Distribution License v. 1.0http://www.eclipse.org/org/documents/edl-v10.phprepoStandard Eclipse Distribution Licensescm:git:ssh://git@github.com/eclipse-ee4j/yasson.gitscm:git:ssh://git@github.com/eclipse-ee4j/yasson.githttps://github.com/eclipse-ee4j/yasson.gitHEADdmitry.kornilov@oracle.commaiden168Dmitry KornilovOracleJSON Binding 1.0 Spec LeadCETroman.grigoriadi@oracle.comroman.grigoriadiRoman GrigoriadiOracleJSON Binding 1.0 DeveloperCETdavid.k.kral@oracle.comdavid.kralDavid KralOracleJSON Binding 1.0 DeveloperCETandy.guibert@gmail.comaguibertAndy GuibertIBMJSON Binding 1.0 DeveloperCSTcheckstyleorg.apache.maven.pluginsmaven-checkstyle-pluginrun-checkstylecheckvalidatespotbugscom.github.spotbugsspotbugs-maven-plugin${spotbugs-maven-plugin.version}Lowanalyze-compilecompilecheckcopyrightorg.glassfish.copyrightglassfish-copyright-maven-plugintrueprint-copyrightcopyrightvalidatecheck-copyrightcheckvalidatejdk16[16,)org.apache.maven.pluginsmaven-compiler-plugindefault-testCompile1616${project.basedir}/src/test/java${project.basedir}/src/test/java16org.apache.maven.pluginsmaven-failsafe-pluginintegration-testverify**/RecordTest.java${project.artifactId}org.apache.maven.pluginsmaven-compiler-plugin${maven-compiler-plugin.version}default-compilecompile111111default-testCompile11multi-release-compile-16compile16${project.basedir}/src/main/java16true-Xlint:allorg.apache.maven.pluginsmaven-jar-plugin${maven-jar-plugin.version}${project.build.outputDirectory}/META-INF/MANIFEST.MFtrueorg.codehaus.mojobuildnumber-maven-plugin${buildnumber-maven-plugin.version}{0,date,MM/dd/yyyy hh:mm aa}timestampvalidatecreateorg.apache.maven.pluginsmaven-javadoc-plugin${maven-javadoc-plugin.version}]]>org.apache.felixmaven-bundle-plugin${maven-bundle-plugin.version}osgi-bundleprepare-packagemanifesttrue${project.name}${project.artifactId}${project.version}org.eclipse.yasson;version=${project.version}org.eclipse.yasson.*;version=${project.version}true
jakarta.enterprise.context.spi;version=!;resolution:="optional",
jakarta.enterprise.inject.spi;version=!;resolution:="optional",
javax.naming;resolution:="optional",
java.beans;resolution:="optional",
*
osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=11))"org.apache.maven.pluginsmaven-surefire-plugin${maven-surefire-plugin.version}default-testtesttestfalse**/JavaxNamingExcludedTest.java**/AnnotationIntrospectorWithoutOptionalModulesTest.java**/*Record*
--add-reads org.eclipse.yasson=ALL-UNNAMED --add-opens org.eclipse.yasson/org.eclipse.yasson.internal.cdi=ALL-UNNAMED
--add-exports org.eclipse.yasson/org.eclipse.yasson.internal.cdi=java.naming
optional-modules-excludedtesttest
--limit-modules java.base,java.logging,java.sql,jakarta.json.bind,jakarta.json,java.management,jdk.localedata,org.eclipse.parsson,org.eclipse.yasson
**/JavaxNamingExcludedTest.class**/AnnotationIntrospectorWithoutOptionalModulesTest.classorg.apache.maven.pluginsmaven-enforcer-plugin${maven-enforcer-plugin.version}enforce-versionsenforce[11,)[3.6.0,)org.codehaus.mojobuild-helper-maven-plugin${build-helper-maven-plugin.version}add-resourcegenerate-resourcesadd-resource${basedir}META-INFLICENSE.mdNOTICE.mdorg.apache.maven.pluginsmaven-checkstyle-plugin${maven-checkstyle-plugin.version}etc/checkstyle.xmletc/checkstyle-suppressions.xmltruetruefalseorg.glassfish.copyrightglassfish-copyright-maven-plugin${glassfish-copyright-maven-plugin.version}etc/copyright.txtetc/copyright-exclude.txtgitfalsetruetruefalsetrueorg.apache.maven.pluginsmaven-compiler-pluginorg.apache.maven.pluginsmaven-jar-pluginorg.codehaus.mojobuildnumber-maven-pluginorg.apache.maven.pluginsmaven-dependency-pluginorg.apache.maven.pluginsmaven-javadoc-pluginorg.apache.maven.pluginsmaven-source-pluginorg.apache.maven.pluginsmaven-enforcer-pluginorg.codehaus.mojobuild-helper-maven-pluginorg.apache.felixmaven-bundle-plugin
================================================
FILE: src/main/java/module-info.java
================================================
/*
* Copyright (c) 2017, 2024 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
/**
* Yasson, the implementation of the Jakarta JSON Binding.
*/
module org.eclipse.yasson {
requires jakarta.json;
requires jakarta.json.bind;
requires java.logging;
requires static java.xml;
requires static java.naming;
requires static java.sql;
requires static java.desktop;
requires static jakarta.cdi;
exports org.eclipse.yasson;
exports org.eclipse.yasson.spi;
provides jakarta.json.bind.spi.JsonbProvider with org.eclipse.yasson.JsonBindingProvider;
uses org.eclipse.yasson.spi.JsonbComponentInstanceCreator;
}
================================================
FILE: src/main/java/org/eclipse/yasson/FieldAccessStrategy.java
================================================
/*
* Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
package org.eclipse.yasson;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import jakarta.json.bind.config.PropertyVisibilityStrategy;
/**
*
Strategy that can be used to force always using fields instead of getters setters for getting / setting value.
*
Suggested approach is to use default visibility strategy, which will use public getters / setters, or field
* if it is public.
*
*
Please consider, that forcing accessing fields will in most cases (when field is not public)
* result in calling {@link Field#setAccessible(boolean)} to break into clients code.
* This may cause problems if client code is loaded as JPMS (Java Platform Module System) module, as OSGi module or
* when SecurityManager is turned on.
*/
public class FieldAccessStrategy implements PropertyVisibilityStrategy {
@Override
public boolean isVisible(Field field) {
return true;
}
@Override
public boolean isVisible(Method method) {
return false;
}
}
================================================
FILE: src/main/java/org/eclipse/yasson/ImplementationClass.java
================================================
/*
* Copyright (c) 2017, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
package org.eclipse.yasson;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Marks an interface with implementation class, which should be used for deserialiation.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD})
public @interface ImplementationClass {
/**
* Class, which will be used as implementation for annotated member.
*
* @return Serializaer to use.
*/
Class> value();
}
================================================
FILE: src/main/java/org/eclipse/yasson/JsonBindingProvider.java
================================================
/*
* Copyright (c) 2015, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
package org.eclipse.yasson;
import jakarta.json.bind.JsonbBuilder;
import jakarta.json.bind.spi.JsonbProvider;
import org.eclipse.yasson.internal.JsonBindingBuilder;
/**
* JsonbProvider implementation.
*/
public class JsonBindingProvider extends JsonbProvider {
@Override
public JsonbBuilder create() {
return new JsonBindingBuilder();
}
}
================================================
FILE: src/main/java/org/eclipse/yasson/YassonConfig.java
================================================
/*
* Copyright (c) 2019, 2022 IBM and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
*/
package org.eclipse.yasson;
import java.util.Map;
import jakarta.json.bind.JsonbConfig;
import jakarta.json.bind.serializer.JsonbSerializer;
/**
* Custom properties for configuring Yasson outside of the specification {@link jakarta.json.bind.JsonbConfig} scope.
*/
public class YassonConfig extends JsonbConfig {
/**
* @see #withFailOnUnknownProperties(boolean)
*/
public static final String FAIL_ON_UNKNOWN_PROPERTIES = "jsonb.fail-on-unknown-properties";
/**
* @see #withUserTypeMapping(java.util.Map)
*/
public static final String USER_TYPE_MAPPING = "jsonb.user-type-mapping";
/**
* @see #withZeroTimeParseDefaulting(boolean)
*/
public static final String ZERO_TIME_PARSE_DEFAULTING = "jsonb.zero-time-defaulting";
/**
* @see #withNullRootSerializer(jakarta.json.bind.serializer.JsonbSerializer)
*/
public static final String NULL_ROOT_SERIALIZER = "yasson.null-root-serializer";
/**
* @see #withEagerParsing(Class...)
*/
public static final String EAGER_PARSE_CLASSES = "yasson.eager-parse-classes";
/**
* @see #withForceMapArraySerializerForNullKeys(boolean)
*/
public static final String FORCE_MAP_ARRAY_SERIALIZER_FOR_NULL_KEYS = "yasson.force-map-array-serializer-for-null-keys";
/**
* @see #withTimeInMillisAsAString(boolean)
*/
public static final String DATE_TIME_IN_MILLIS_AS_A_STRING = "yasson.time-in-millis-as-a-string";
/**
* Property used to specify behaviour on deserialization when JSON document contains properties
* which doesn't exist in the target class. Default value is 'false'.
* @param failOnUnknownProperties Whether or not to fail if unknown properties are encountered
* @return This YassonConfig instance
*/
public YassonConfig withFailOnUnknownProperties(boolean failOnUnknownProperties) {
setProperty(FAIL_ON_UNKNOWN_PROPERTIES, failOnUnknownProperties);
return this;
}
/**
* User type mapping for map interface to implementation classes.
* @param mapping A map of interface to implementation class mappings
* @return This YassonConfig instance
*/
public YassonConfig withUserTypeMapping(Map, Class>> mapping) {
setProperty(USER_TYPE_MAPPING, mapping);
return this;
}
/**
*
Makes parsing dates defaulting to zero hour, minute and second.
* This will made available to parse patterns like yyyy.MM.dd to
* {@link java.util.Date}, {@link java.util.Calendar}, {@link java.time.Instant} {@link java.time.LocalDate}
* or even {@link java.time.ZonedDateTime}.
*
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 {@link java.time.Instant} or {@link java.time.ZonedDateTime}.
* @param defaultZeroHour Whether or not to default parsing dates to the zero hour
* @return This YassonConfig instance
*/
public YassonConfig withZeroTimeParseDefaulting(boolean defaultZeroHour) {
setProperty(ZERO_TIME_PARSE_DEFAULTING, defaultZeroHour);
return this;
}
/**
* Serializer to use when object provided to {@link jakarta.json.bind.Jsonb#toJson(Object)} is {@code null} or an empty
* Optional. Must be instance of {@link jakarta.json.bind.serializer.JsonbSerializer}{@code