org.junit.ComparisonFailure: expected:<25[.000]but was:<25[]>
Expected :25.000
Actual :25
Is it possible to inject the behaviour I am after? The JacksonUtils that JsonMergePatch is using sets the factory to JsonNodeFactory.instance and I cannot see a way around this. I would prefer to use the JsonNodeFactory.decimalsAsIs for my specific case.
This also applies to the JsonDiff.asJson(older, newer) with the same behaviour as the above example.
Issue copied from: https://github.com/java-json-tools/json-patch/issues/110
I would like to use the library
withExactBigDecimals
, i.e keeping25.000
when patching a node.Is it possible to inject the behaviour I am after? The
JacksonUtils
that JsonMergePatch is using sets the factory toJsonNodeFactory.instance
and I cannot see a way around this. I would prefer to use theJsonNodeFactory.decimalsAsIs
for my specific case.This also applies to the
JsonDiff.asJson(older, newer)
with the same behaviour as the above example.