We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f857dda commit e748c60Copy full SHA for e748c60
2 files changed
src/test/org/json/junit/JSONPointerTest.java
@@ -94,4 +94,14 @@ public void syntaxError() {
94
new JSONPointer("key");
95
}
96
97
+ @Test(expected = JSONPointerException.class)
98
+ public void arrayIndexFailure() {
99
+ query("/foo/2");
100
+ }
101
+
102
103
+ public void primitiveFailure() {
104
+ query("/obj/key/failure");
105
106
107
src/test/org/json/junit/jsonpointer-testdoc.json
@@ -12,5 +12,8 @@
12
"i\\j": 5,
13
"k\"l": 6,
14
" ": 7,
15
- "m~n": 8
+ "m~n": 8,
16
+ "obj" : {
17
+ "key" : "value"
18
19
0 commit comments