| Class | Description |
|---|---|
| CustomJsonNodeFactory |
Custom
JsonNodeFactory and ObjectMapper |
| JacksonUtils | |
| NumberNode |
Wrapper clas over Jackson's
NumericNode and derivates |
There are two utility classes:
NumberNode is a
wrapper class over NumericNode which respects JSON
Schema's definition of numeric equality (ie, 1.0 is equal to
1), all the while retaining type detection (ie, 1.0 is
not an integer);CustomJsonNodeFactory
is a custom implementation of JsonNodeFactory which generates
numeric nodes using the class above, but also this package's overriden
ArrayNode and ObjectNode.The custom node factory also provides a custom ObjectMapper, since we always deserialize
floating point numbers using BigDecimal, which is not the
default.
Copyright © 2013. All Rights Reserved.