We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1be6ee3 + a2d3d3c commit 98df354Copy full SHA for 98df354
src/test/java/org/json/junit/JSONPointerTest.java
@@ -72,8 +72,10 @@ public void queryByEmptyKey() {
72
73
@Test
74
public void queryByEmptyKeySubObject() {
75
- assertEquals( "{\"\":\"empty key of an object with an empty key\",\"subKey\":\"Some" +
76
- " other value\"}", query("/obj/").toString());
+ JSONObject json = new JSONObject("{\"\":\"empty key of an object with an empty key\",\"subKey\":\"Some" +
+ " other value\"}");
77
+ JSONObject obj = (JSONObject) query("/obj/");
78
+ assertTrue(json.similar(obj));
79
}
80
81
0 commit comments