1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

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;
}