Skip to content

Commit 2917104

Browse files
committed
Allow user to invoke query and optQuery ,with a JSONPointer,directly
from JSONArray or JSONObject fix JSONArray
1 parent 9e0fc5e commit 2917104

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JSONArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ public Object query(JSONPointer jsonPointer) {
10151015
* @throws IllegalArgumentException if {@code jsonPointer} has invalid syntax
10161016
*/
10171017
public Object optQuery(String jsonPointer) {
1018-
return query(new JSONPointer(jsonPointer));
1018+
return optQuery(new JSONPointer(jsonPointer));
10191019
}
10201020

10211021
/**

0 commit comments

Comments
 (0)