Class JacksonJsonUtils

java.lang.Object
org.springframework.integration.support.json.JacksonJsonUtils

public final class JacksonJsonUtils extends Object
Utility methods for Jackson.
Since:
3.0
Author:
Artem Bilan, Gary Russell
  • Field Details

    • DEFAULT_TRUSTED_PACKAGES

      public static final List<String> DEFAULT_TRUSTED_PACKAGES
      The packages to trust on JSON deserialization by default.
  • Method Details

    • messagingAwareMapper

      public static com.fasterxml.jackson.databind.ObjectMapper messagingAwareMapper(String... trustedPackages)
      Return an ObjectMapper if available, supplied with Message specific serializers and deserializers. Also configured to store typo info in the @class property.
      Parameters:
      trustedPackages - the trusted Java packages for deserialization.
      Returns:
      the mapper.
      Throws:
      IllegalStateException - if an implementation is not available.
      Since:
      4.3.10