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.
1 parent cbd0418 commit a66b97fCopy full SHA for a66b97f
src/test/java/org/json/junit/JSONObjectTest.java
@@ -183,8 +183,8 @@ public void verifyNumberOutput(){
183
jsonObject = new JSONObject();
184
jsonObject.put("myNumber", new MyNumber());
185
actual = jsonObject.toString();
186
- // the output is the toString of the number as a string.
187
- expected = "{\"myNumber\":\"42\"}";
+ // the output is the toString of the number as a number.
+ expected = "{\"myNumber\":42}";
188
assertEquals("Not Equal", expected , actual);
189
190
jsonObject = new JSONObject(Collections.singletonMap("myNumber", new AtomicInteger(42)));
0 commit comments