added JSONObject#query() and JSONPointer#query() methods

This commit is contained in:
Bence Erős
2016-04-26 23:48:14 +02:00
parent 792c6f6a9c
commit 45bd72c15d
3 changed files with 22 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ public class JSONPointer {
.replace("\\\\", "\\");
}
public Object queryFrom(JSONObject document) {
public Object queryFrom(Object document) {
if (refTokens.isEmpty()) {
return document;
}