1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-16 23:40:51 -07:00

Allow user to invoke query and optQuery ,with a JSONPointer,directly

from JSONArray or JSONObject fix JSONArray
This commit is contained in:
alessandro rao 2017-02-25 14:35:02 +01:00
parent 9e0fc5e680
commit 2917104b53

View file

@ -1015,7 +1015,7 @@ public class JSONArray implements Iterable<Object> {
* @throws IllegalArgumentException if {@code jsonPointer} has invalid syntax
*/
public Object optQuery(String jsonPointer) {
return query(new JSONPointer(jsonPointer));
return optQuery(new JSONPointer(jsonPointer));
}
/**