We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 768db58 commit d692c7eCopy full SHA for d692c7e
json-smart/src/test/java/net/minidev/json/test/TestBigValue.java
@@ -40,4 +40,15 @@ public void testBigInteger() {
40
assertEquals(bigInt, obj.get("big"));
41
assertEquals(bigInt.getClass(), obj.get("big").getClass());
42
}
43
+ /**
44
+ * https://github.com/netplex/json-smart-v1/issues/6
45
+ */
46
+ @Test
47
+ public void testBigDouble() throws Exception {
48
+ String content = "{\"customDouble\": 3.14159265358979323846}";
49
+ System.out.printf("Input: %s\n", content);
50
+ JSONParser parser = new JSONParser(DEFAULT_PERMISSIVE_MODE);
51
+ JSONObject jwtContent = (JSONObject) parser.parse(content);
52
+ System.out.printf("Output: %s\n", jwtContent.toJSONString());
53
+ }
54
0 commit comments