Package kong.unirest.core.json
Class JSONPointer
java.lang.Object
kong.unirest.core.json.JSONPointer
A Json Pointer query object following
https://tools.ietf.org/html/rfc6901
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static interfaceprivate classprivate class -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateJSONPointer(String query) a JSONPointer constructorprivateJSONPointer(String section, JSONPointer nextNode) -
Method Summary
Modifier and TypeMethodDescriptionstatic JSONPointer.Builderbuilder()static JSONPointerprivate static JSONPointercompileNext(String query) Many of the path compiling code was borrowed from Jackson.private static JSONPointercompileNextEscaped(String query, int i) private static JSONPointercreatePointer(String query) private static voidescape(StringBuilder sb, char c) toString()private Stringprivate static Stringprivate JSONPointer.Queryable
-
Field Details
-
section
-
next
-
-
Constructor Details
-
JSONPointer
private JSONPointer() -
JSONPointer
a JSONPointer constructor- Parameters:
query- the pointer query
-
JSONPointer
-
-
Method Details
-
toString
-
toURIFragment
- Returns:
- the pointer as a URL encoded URI fragment
-
toUriChunk
-
compile
-
createPointer
-
compileNext
Many of the path compiling code was borrowed from Jackson. It is, slightly modified but similar enough to give credit. please see com.fasterxml.jackson.core.JsonPointer -
compileNextEscaped
-
unescape
-
escape
-
queryFrom
- Throws:
JSONPointerException
-
verify
-
builder
-