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 class
private static interface
private class
private class
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
JSONPointer
(String query) a JSONPointer constructorprivate
JSONPointer
(String section, JSONPointer nextNode) -
Method Summary
Modifier and TypeMethodDescriptionstatic JSONPointer.Builder
builder()
static JSONPointer
private static JSONPointer
compileNext
(String query) Many of the path compiling code was borrowed from Jackson.private static JSONPointer
compileNextEscaped
(String query, int i) private static JSONPointer
createPointer
(String query) private static void
escape
(StringBuilder sb, char c) toString()
private String
private static String
private 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
-