| Class | Description |
|---|---|
| CustomJsonNodeFactory |
Custom
JsonNodeFactory and ObjectMapper |
| JacksonUtils |
Simple utility class
|
| JsonArray |
Override of Jackson's
ArrayNode |
| JsonObject |
Override of Jackson's
ObjectNode |
| NumberNode |
Wrapper clas over Jackson's
NumericNode and derivates |
There are five 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);JsonArray and JsonObject are implementations
overriding Jackson's ArrayNode and ObjectNode respectively;
CustomJsonNodeFactory
is a custom implementation of JsonNodeFactory which generates
numeric nodes using the class above, but also this package's overriden
ArrayNode and ObjectNode;JacksonUtils contains
a single method generating a Map out of an object's
members.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.