Class JacksonJsonUtils

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

@Deprecated(since="7.0", forRemoval=true) public final class JacksonJsonUtils extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Since 7.0 in favor of JacksonMessagingUtils for Jackson 3.
Utility methods for Jackson.
Since:
3.0
Author:
Artem Bilan, Gary Russell, Youbin Wu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<String>
    Deprecated, for removal: This API element is subject to removal in a future version.
    The packages to trust on JSON deserialization by default.
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.fasterxml.jackson.databind.ObjectMapper
    messagingAwareMapper(String... trustedPackages)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return an ObjectMapper if available, supplied with Message specific serializers and deserializers.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_TRUSTED_PACKAGES

      public static final List<String> DEFAULT_TRUSTED_PACKAGES
      Deprecated, for removal: This API element is subject to removal in a future version.
      The packages to trust on JSON deserialization by default.
  • Method Details

    • messagingAwareMapper

      public static com.fasterxml.jackson.databind.ObjectMapper messagingAwareMapper(String... trustedPackages)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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