Class JsonConfig
java.lang.Object
software.amazon.lambda.powertools.utilities.JsonConfig
-
Method Summary
Modifier and TypeMethodDescription<T extends io.burt.jmespath.function.BaseFunction>
voidaddFunction(T function) static JsonConfigget()io.burt.jmespath.JmesPath<com.fasterxml.jackson.databind.JsonNode> Return the JmesPath used to select sub node of Jsoncom.fasterxml.jackson.databind.ObjectMapperReturn an Object Mapper.
-
Method Details
-
get
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()Return an Object Mapper. Use this to customize (de)serialization config.- Returns:
- the
ObjectMapperto 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) - Type Parameters:
T- Must extendsBaseFunction- Parameters:
function- the function to add
-