jackson-modules-java8 icon indicating copy to clipboard operation
jackson-modules-java8 copied to clipboard

Set of support modules for Java 8 datatypes (Optionals, date/time) and features (parameter names)

Results 39 jackson-modules-java8 issues
Sort by recently updated
recently updated
newest added

This issue is related to serializing `ZonedDateTime` with a `ZoneOffset`. When the same value is deserialized, we get back `ZonedDateTime` with a `ZoneId` instead. As a result, the seralized and...

has-failing-test

The following test fails on Jackson 2.9.7 and passes on 2.8.11: ``` @Test public void test() throws Exception { ObjectMapper mapper = new ObjectMapper(); mapper.setDefaultTyping( new StdTypeResolverBuilder() .init(JsonTypeInfo.Id.CLASS, null) .inclusion(JsonTypeInfo.As.WRAPPER_OBJECT)...

I think even after #184 and related changes this is still not possible. Trying to parse a string `"3600"` into a Duration field results in an exception: "Text cannot be...

2.17

I was looking around for a way how to differentiate between a field with null value and a missing field by having only the final Java object. And my assumption...

**Describe the bug** I have a use case when lack of field in json has different meaning than setting this field to null. To model this I use Optional. It...

Hi, we have set `SerializationFeature.WRITE_DATES_AS_TIMESTAMPS` to `false` and in java8 it wrote time in milliseconds precision (java worked this way for a long time). After migrating to java11 the precision...

I have an `Instant` field that represents an epoch timestamp in seconds. ``` @JsonProperty("registered_at") @JsonFormat(shape = JsonFormat.Shape.NUMBER) private Instant registeredAt; ``` the mapper is configured this way ``` .featuresToDisable(ADJUST_DATES_TO_CONTEXT_TIME_ZONE, FAIL_ON_UNKNOWN_PROPERTIES,...

new-feature
date-time-config

I'm using jackson 2.12.5. When I tried to serialize `OffsetDateTime` without calling `ObjectMapper.setTimeZone()`, the serializer will use the offset in `OffsetDateTime`. But when I tried to serialize `OffsetDateTime` with calling...

Given input string: `2021-02-01T19:49:04.0513486Z` Jackson will deserialize a ZonedDateTime with the following properties: * `offset`: `"Z"` (type ZonedOffset) * `zone`: `"UTC"` (type ZoneRegion) Using the standard call ```java DateTimeFormatter.ISO_ZONED_DATE_TIME.parse(inputString, ZonedDateTime::from);...

date-time-config
2.14

Issue explained here: https://stackoverflow.com/questions/47502158/force-milliseconds-when-serializing-instant-to-iso8601-using-jackson Version: 2.9.5 How to reproduce: Project where I use Spring Boot 2.0.0.M6, Spring Framework 5.0.1.RELEASE and Jackson 2.9.5 **Test 1: Serialize Instant with milliseconds set to...