JSONPointer { @Override public String toString() { StringBuilder sb = new StringBuilder("/"); sb.append(unescape(section)); if(next != null){ sb.append(next.toString()); } return sb.toString(); } private  JSONPointer();  JSONPointer(String query); private  JSONPointer(String section, JSONPointer nextNode); @Override String toString(); String toURIFragment(); static JSONPointer compile(String query); Object queryFrom(Object object); static JSONPointer.Builder builder();  }
@Test public void testRef_ArrayZero() { assertEquals("bar", obj.query("/foo/0").toString()); }