@Test public void pathCanReferToArrayContentsAtTheDocumentRoot() { ArrayNode root = new ObjectMapper().createArrayNode(); root.add(root.objectNode()); root.add(root.objectNode()); root.add(root.objectNode()); assertThat(resolver.resolve(root, "#/0", "#/."), is(sameInstance(root.get(0)))); assertThat(resolver.resolve(root, "#/1", "#/."), is(sameInstance(root.get(1)))); assertThat(resolver.resolve(root, "#/2", "#/."), is(sameInstance(root.get(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);  }