Class Jackson2JsonMessageConverter

All Implemented Interfaces:
MessageConverter, SmartMessageConverter, Aware, BeanClassLoaderAware

public class Jackson2JsonMessageConverter extends AbstractJackson2MessageConverter
JSON converter that uses the Jackson 2 Json library.
Author:
Mark Pollack, James Carr, Dave Syer, Sam Nelson, Andreas Asplund, Gary Russell, Artem Bilan, Arlo Louis O'Keeffe, Mohammad Hewedy
  • Constructor Details

    • Jackson2JsonMessageConverter

      public Jackson2JsonMessageConverter()
      Construct with an internal ObjectMapper instance and trusted packed to all (*).
      Since:
      1.6.11
    • Jackson2JsonMessageConverter

      public Jackson2JsonMessageConverter(String... trustedPackages)
      Construct with an internal ObjectMapper instance. The DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES is set to false on the ObjectMapper.
      Parameters:
      trustedPackages - the trusted Java packages for deserialization
      Since:
      1.6.11
      See Also:
    • Jackson2JsonMessageConverter

      public Jackson2JsonMessageConverter(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper)
      Construct with the provided ObjectMapper instance and trusted packed to all (*).
      Parameters:
      jsonObjectMapper - the ObjectMapper to use.
      Since:
      1.6.12
    • Jackson2JsonMessageConverter

      public Jackson2JsonMessageConverter(com.fasterxml.jackson.databind.ObjectMapper jsonObjectMapper, String... trustedPackages)
      Construct with the provided ObjectMapper instance.
      Parameters:
      jsonObjectMapper - the ObjectMapper to use.
      trustedPackages - the trusted Java packages for deserialization
      Since:
      1.6.11
      See Also: