|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.isis.viewer.restfulobjects.applib.util.JsonNodeUtils
public class JsonNodeUtils
| Method Summary | |
|---|---|
static InputStream |
asInputStream(org.codehaus.jackson.JsonNode jsonNode)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static InputStream asInputStream(org.codehaus.jackson.JsonNode jsonNode)
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": {
}
}
}
}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||