File tree Expand file tree Collapse file tree
src/main/java/fr/maif/json Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ dependencies {
3434 implementation " io.vavr:vavr-jackson:1.0.0"
3535 implementation " tools.jackson.core:jackson-core:$jacksonVersion "
3636 implementation " com.fasterxml.jackson.core:jackson-annotations:2.21"
37+ implementation " tools.jackson.datatype:jackson-datatype-jakarta-jsonp:$jacksonVersion "
3738 implementation " tools.jackson.core:jackson-databind:$jacksonVersion "
3839
3940 testCompileOnly " org.projectlombok:lombok:$lombokVersion "
Original file line number Diff line number Diff line change 2020import io .vavr .collection .Traversable ;
2121import io .vavr .control .Option ;
2222import io .vavr .jackson .datatype .VavrModule ;
23+ import tools .jackson .datatype .jsonp .JSONPModule ;
2324
2425import java .io .IOException ;
2526import java .util .Objects ;
@@ -32,6 +33,7 @@ public class Json {
3233 public static ObjectMapper newDefaultMapper () {
3334 return JsonMapper .builder ()
3435 .addModule (new VavrModule ())
36+ .addModule (new JSONPModule ())
3537 .configure (DateTimeFeature .WRITE_DATES_AS_TIMESTAMPS , false )
3638 .configure (DeserializationFeature .FAIL_ON_UNKNOWN_PROPERTIES , false )
3739 .configure (SerializationFeature .FAIL_ON_EMPTY_BEANS , false )
You can’t perform that action at this time.
0 commit comments