JsonNodeUtils

API

JsonNodeUtils.java
class JsonNodeUtils {
  InputStream asInputStream(JsonNode jsonNode)
  InputStream asInputStream(JsonRepresentation jsonRepresentation)
  ObjectNode walkNodeUpTo(ObjectNode node, List<String> keys)     (1)
}
1 walkNodeUpTo(ObjectNode, List)

Walks the path, ensuring keys exist and are maps, or creating required maps as it goes.

Members

walkNodeUpTo(ObjectNode, List)

Walks the path, ensuring keys exist and are maps, or creating required maps as it goes.

For example, if given a list ("a", "b", "c") and starting with an empty map, then will create:

{
  "a": {
    "b: {
      "c": {
      }
    }
  }
}