public final class JsiiObjectMapper extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
JsiiObjectMapper.JsiiDeserializerModifier |
| Modifier and Type | Field and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
INSTANCE
An ObjectMapper that can be used to serialize and deserialize JSII requests and responses.
|
static long |
serialVersionUID |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
treeToValue(com.fasterxml.jackson.databind.JsonNode tree,
Class<T> valueType)
Similar to calling JsiiObjectMapper.INSTANCE.treeToValue, but handles a null JsonNode argument
well, and throws JsiiException instead of JsonProcessingException.
|
static <T extends com.fasterxml.jackson.databind.JsonNode> |
valueToTree(Object value)
Similar to calling JsiiObjectMapper.INSTANCE.valueToTree, but handles a null argument well by
returning null.
|
public static final long serialVersionUID
public static final com.fasterxml.jackson.databind.ObjectMapper INSTANCE
public static <T> T treeToValue(com.fasterxml.jackson.databind.JsonNode tree,
Class<T> valueType)
T - expected typetree - the JSON object to parsevalueType - the expected type value typepublic static <T extends com.fasterxml.jackson.databind.JsonNode> T valueToTree(Object value)
T - expected JSON typevalue - the value to serializeCopyright © 2019. All rights reserved.