mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-05 20:35:37 -04:00
Add another test
This commit is contained in:
parent
f4201cf318
commit
43f3f5e80b
@ -75,6 +75,14 @@ public class JSONPointerTest {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void queryByEmptyKeySubObjectValue() {
|
||||||
|
assertSame(
|
||||||
|
document.getJSONObject("obj").getJSONObject("").get("subKey"),
|
||||||
|
query("/obj//subKey")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void slashEscaping() {
|
public void slashEscaping() {
|
||||||
assertSame(document.get("a/b"), query("/a~1b"));
|
assertSame(document.get("a/b"), query("/a~1b"));
|
||||||
|
@ -20,6 +20,9 @@
|
|||||||
"val"
|
"val"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"" : { "" : "empty key of an object with an empty key" }
|
"" : {
|
||||||
|
"" : "empty key of an object with an empty key",
|
||||||
|
"subKey" : "Some other value"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user