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 6599f9f commit 8c3cfb8Copy full SHA for 8c3cfb8
src/test/java/com/fasterxml/jackson/databind/node/TestNumberNodes.java
@@ -269,6 +269,11 @@ public void testBigDecimalAsPlain() throws Exception
269
270
// also via ObjectWriter:
271
assertEquals("{\"x\":100}", mapper.writer().writeValueAsString(node));
272
+
273
+ // and once more for [core#175]:
274
+ BigDecimal bigDecimal = new BigDecimal(100);
275
+ JsonNode tree = mapper.valueToTree(bigDecimal);
276
+ assertEquals("100", mapper.writeValueAsString(tree));
277
}
278
279
// Related to [Issue#333]
0 commit comments