Skip to content

Commit

Permalink
Merge pull request #67 from usdot-jpo-ode/allow-unknown-props
Browse files Browse the repository at this point in the history
Jackson Allow Unknown Properties
  • Loading branch information
Michael7371 authored Aug 23, 2024
2 parents 25e58d4 + 1985022 commit eac49c4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package us.dot.its.jpo.geojsonconverter;

import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
Expand All @@ -13,6 +14,7 @@ public class DateJsonMapper {
objectMapper.registerModule(new JavaTimeModule());
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
objectMapper.setSerializationInclusion(Include.NON_NULL);
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
}

public static ObjectMapper getInstance() {
Expand Down

0 comments on commit eac49c4

Please sign in to comment.