jackson-modules-java8
jackson-modules-java8 copied to clipboard
Set of support modules for Java 8 datatypes (Optionals, date/time) and features (parameter names)
Jsoniter project (https://github.com/plokhotnyuk/jsoniter-scala) has many impressive performance optimizations; linked f.ex from here: https://www.reddit.com/r/java/comments/darehu/jackson_release_210/f1ysf1e/ and ones relevant to this repo have to with Java 8 date/time type decoding. It would be...
We annotated some constructor properties with @JsonFormat(lenient = OptBoolean.FALSE) but found that the InstantDeserializer is not applying it when deserializing numeric values. Expected _failForNotLenient(parser, context, JsonToken.VALUE_STRING) to be invoked for...
InstantSerializer doesn't respect any format-related settings without replacing serializer instance
InstantSerializer doesn't respect any of the following standard Jackson configuration settings: `ObjectMapper#setDateFormat` `@JsonFormat(pattern)` on an `Instant` others? Instead, I have to create and manually override the default `InstantSerializer` registered by...
If _ParameterNamesModule_ is registered, **{ "a": 1, "b": 1 }** can be deserialized to an instance of: ``` public class Foo{ public Foo(int a, int b) { } } ```...
What string formats will deserialise successfully to an Instant type, using a vanilla object mapper? I would like to follow Postels law and be as wide as possible in accepting...
It says: https://github.com/FasterXML/jackson-modules-java8/tree/master/datetime For string representation default formats for deserialization are: | Java type | Format | |------------|---------| |[`ZonedDateTime`](https://docs.oracle.com/javase/8/docs/api/java/time/ZonedDateTime.html)|[`DateTimeFormatter.ISO_ZONED_DATE_TIME`](https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html#ISO_ZONED_DATE_TIME)| But in the code I see: https://github.com/FasterXML/jackson-modules-java8/blob/1534c557d4ea997b7a80a9bcba4c98cd558e4493/datetime/src/main/java/com/fasterxml/jackson/datatype/jsr310/ser/ZonedDateTimeSerializer.java#L22-L23
With SerializationFeature.WRITE_DATES_AS_TIMESTAMPS it's possible to output date and time data as ISO 8601, but there seems to be no way to only accept date and time data in ISO 8601...
When I use in a JUnit Test LocalDateTime.MAX and LocalDateTime.MIN I recieve an exception. See exception below. I use - SpringBoot version 2.1.3 - Jackson 2.9.9 - Junit Jupiter 5.3.1...
Hi all, as seen in https://github.com/FasterXML/jackson-modules-java8/blob/master/datetime/src/main/java/com/fasterxml/jackson/datatype/jsr310/ser/LocalDateTimeSerializer.java method _serializeAsArrayContents line 112, if seconds or nanos are set to 0 in the LocalDateTime object being serialized, they will NOT be included into...
This is a followup for #90 I've just read about CVE-2018-1000873 and found more issues like these that result in a possible DoS where used within a service. To make...