public class JsonNodeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
asInputStream(org.codehaus.jackson.JsonNode jsonNode) |
static InputStream |
asInputStream(JsonRepresentation jsonRepresentation) |
static org.codehaus.jackson.node.ObjectNode |
walkNodeUpTo(org.codehaus.jackson.node.ObjectNode node,
List<String> keys)
Walks the path, ensuring keys exist and are maps, or creating required
maps as it goes.
|
public static InputStream asInputStream(org.codehaus.jackson.JsonNode jsonNode)
public static InputStream asInputStream(JsonRepresentation jsonRepresentation)
public static org.codehaus.jackson.node.ObjectNode walkNodeUpTo(org.codehaus.jackson.node.ObjectNode node, List<String> keys)
For example, if given a list ("a", "b", "c") and starting with an empty map, then will create:
{
"a": {
"b: {
"c": {
}
}
}
}Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.