We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d6cccc commit 48d1381Copy full SHA for 48d1381
1 file changed
framework/src/test/java/org/tron/json/JsonTest.java
@@ -26,6 +26,12 @@ public void testUnquotedFieldNames() {
26
assertEquals(1, JSON.parseObject("{a:1}").getIntValue("a"));
27
}
28
29
+ @Test
30
+ public void testDupFieldNames() {
31
+ assertEquals(2, JSON.parseObject("{a:1, a:2 }").getIntValue("a"));
32
+ assertEquals(1, JSON.parseObject("{a:2, a:1 }").getIntValue("a"));
33
+ }
34
+
35
@Test
36
public void testSingleQuotes() {
37
assertEquals(1, JSON.parseObject("{'a':'1'}").getIntValue("a"));
0 commit comments