JSONPointer { public String toURIFragment() { return "#" + toUriChunk(); } 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 canGetAsURIFragmanet() { assertEquals("#/foo/g%7Eh/baz", new JSONPointer("/foo/g~h/baz").toURIFragment()); }