mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-05 20:35:37 -04:00
Allow user to invoke query and optQuery ,with a JSONPointer,directly
from JSONArray or JSONObject fix JSONArray
This commit is contained in:
parent
9e0fc5e680
commit
2917104b53
@ -1015,7 +1015,7 @@ public class JSONArray implements Iterable<Object> {
|
|||||||
* @throws IllegalArgumentException if {@code jsonPointer} has invalid syntax
|
* @throws IllegalArgumentException if {@code jsonPointer} has invalid syntax
|
||||||
*/
|
*/
|
||||||
public Object optQuery(String jsonPointer) {
|
public Object optQuery(String jsonPointer) {
|
||||||
return query(new JSONPointer(jsonPointer));
|
return optQuery(new JSONPointer(jsonPointer));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user