Package kong.unirest.core.json
Class JSONPointer
- java.lang.Object
-
- kong.unirest.core.json.JSONPointer
-
public class JSONPointer extends Object
A Json Pointer query object following https://tools.ietf.org/html/rfc6901
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JSONPointer.Builder
-
Constructor Summary
Constructors Constructor Description JSONPointer(String query)
a JSONPointer constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JSONPointer.Builder
builder()
static JSONPointer
compile(String query)
Object
queryFrom(Object object)
String
toString()
String
toURIFragment()
-
-
-
Constructor Detail
-
JSONPointer
public JSONPointer(String query)
a JSONPointer constructor- Parameters:
query
- the pointer query
-
-
Method Detail
-
toURIFragment
public String toURIFragment()
- Returns:
- the pointer as a URL encoded URI fragment
-
compile
public static JSONPointer compile(String query)
-
queryFrom
public Object queryFrom(Object object) throws JSONPointerException
- Throws:
JSONPointerException
-
builder
public static JSONPointer.Builder builder()
-
-