@Test public void slashDelimitedWordsResolveToChildNodes() { ObjectNode root = new ObjectMapper().createObjectNode(); ObjectNode a = root.objectNode(); ObjectNode b = root.objectNode(); ObjectNode c = root.objectNode(); root.set("a", a); root.set("b", b); root.set("c", c); ObjectNode x = root.objectNode(); ObjectNode y = root.objectNode(); ObjectNode z = root.objectNode(); a.set("x", x); a.set("y", y); a.set("z", z); ObjectNode _0 = root.objectNode(); ObjectNode _1 = root.objectNode(); ObjectNode _2 = root.objectNode(); z.set("0", _0); z.set("1", _1); z.set("2", _2); assertThat((ObjectNode) resolver.resolve(root, "#/a", "#/."), is(sameInstance(a))); assertThat((ObjectNode) resolver.resolve(root, "#/b", "#/."), is(sameInstance(b))); assertThat((ObjectNode) resolver.resolve(root, "#/c", "#/."), is(sameInstance(c))); assertThat((ObjectNode) resolver.resolve(root, "#/a/x", "#/."), is(sameInstance(x))); assertThat((ObjectNode) resolver.resolve(root, "#/a/y", "#/."), is(sameInstance(y))); assertThat((ObjectNode) resolver.resolve(root, "#/a/z", "#/."), is(sameInstance(z))); assertThat((ObjectNode) resolver.resolve(root, "#/a/z/0", "#/."), is(sameInstance(_0))); assertThat((ObjectNode) resolver.resolve(root, "#/a/z/1", "#/."), is(sameInstance(_1))); assertThat((ObjectNode) resolver.resolve(root, "#/a/z/2", "#/."), is(sameInstance(_2))); }
public JsonNode resolve(JsonNode tree, String path, String refFragmentPathDelimiters) { return resolve(tree, new ArrayList<>(asList(split(path, refFragmentPathDelimiters)))); }
FragmentResolver { public JsonNode resolve(JsonNode tree, String path, String refFragmentPathDelimiters) { return resolve(tree, new ArrayList<>(asList(split(path, refFragmentPathDelimiters)))); } }
FragmentResolver { public JsonNode resolve(JsonNode tree, String path, String refFragmentPathDelimiters) { return resolve(tree, new ArrayList<>(asList(split(path, refFragmentPathDelimiters)))); }  }
FragmentResolver { public JsonNode resolve(JsonNode tree, String path, String refFragmentPathDelimiters) { return resolve(tree, new ArrayList<>(asList(split(path, refFragmentPathDelimiters)))); }  JsonNode resolve(JsonNode tree, String path, String refFragmentPathDelimiters); }
FragmentResolver { public JsonNode resolve(JsonNode tree, String path, String refFragmentPathDelimiters) { return resolve(tree, new ArrayList<>(asList(split(path, refFragmentPathDelimiters)))); }  JsonNode resolve(JsonNode tree, String path, String refFragmentPathDelimiters);  }