public final class JsiiObjectMapper extends Object
| Constructor and Description |
|---|
JsiiObjectMapper()
Creates an object mapper.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
treeToValue(com.fasterxml.jackson.databind.JsonNode tree,
Class<T> type)
Converts a jsii JSON tree to a local Java type.
|
<T extends com.fasterxml.jackson.databind.JsonNode> |
valueToTree(Object value)
Converts a local value to a jsii JSON representation.
|
public <T extends com.fasterxml.jackson.databind.JsonNode> T valueToTree(Object value)
T - The return type.value - The local java value.public <T> T treeToValue(com.fasterxml.jackson.databind.JsonNode tree,
Class<T> type)
throws com.fasterxml.jackson.core.JsonProcessingException
T - The return type.tree - The JSON tree.type - The expected return type.com.fasterxml.jackson.core.JsonProcessingException - If there was a problem reading the JSON tree.Copyright © 2019. All rights reserved.