Class JacksonUtils

java.lang.Object
org.springframework.kafka.support.JacksonUtils

public final class JacksonUtils extends Object
The utilities for Jackson ObjectMapper instances.
Since:
2.3
Author:
Artem Bilan
  • Method Details

    • enhancedObjectMapper

      public static com.fasterxml.jackson.databind.ObjectMapper enhancedObjectMapper()
      Factory for ObjectMapper instances with registered well-known modules and disabled MapperFeature.DEFAULT_VIEW_INCLUSION and DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES features.
      Returns:
      the ObjectMapper instance.
    • enhancedObjectMapper

      @Deprecated public static com.fasterxml.jackson.databind.ObjectMapper enhancedObjectMapper(ClassLoader classLoader)
      Deprecated.
      since 2.7.5 in favor of enhancedObjectMapper()
      Factory for ObjectMapper instances with registered well-known modules and disabled MapperFeature.DEFAULT_VIEW_INCLUSION and DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES features.
      Parameters:
      classLoader - the ClassLoader for modules to register.
      Returns:
      the ObjectMapper instance.