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:
parent
792c6f6a9c
commit
45bd72c15d
3 changed files with 22 additions and 3 deletions
|
@ -44,7 +44,7 @@ public class JSONPointer {
|
|||
.replace("\\\\", "\\");
|
||||
}
|
||||
|
||||
public Object queryFrom(JSONObject document) {
|
||||
public Object queryFrom(Object document) {
|
||||
if (refTokens.isEmpty()) {
|
||||
return document;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue