java.lang.Object
software.amazon.lambda.powertools.utilities.JsonConfig

public final class JsonConfig extends Object
  • Method Details

    • get

      public static JsonConfig get()
    • getObjectMapper

      public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      Return an Object Mapper. Use this to customize (de)serialization config.
      Returns:
      the ObjectMapper to serialize / deserialize JSON
    • getJmesPath

      public io.burt.jmespath.JmesPath<com.fasterxml.jackson.databind.JsonNode> getJmesPath()
      Return the JmesPath used to select sub node of Json
      Returns:
      the JmesPath
    • addFunction

      public <T extends io.burt.jmespath.function.BaseFunction> void addFunction(T function)
      Add a custom Function to JMESPath Base64Function and Base64GZipFunction are already built-in.
      Type Parameters:
      T - Must extends BaseFunction
      Parameters:
      function - the function to add