Class | Description |
---|---|
JacksonUtils |
Utility class for Jackson
|
JsonLoader |
Utility class to load JSON values from various sources as
JsonNode s. |
JsonNodeReader |
Class dedicated to reading JSON values from
InputStream s and Reader s |
JsonNumEquals |
An
Equivalence strategy for JSON Schema equality |
Enum | Description |
---|---|
NodeType |
Enumeration for the different types of JSON instances which can be
encountered.
|
JsonLoader
contains various methods to load
JSON documents as JsonNode
s. It uses
a JsonNodeReader
(as such, parsing []]
will generate an error where Jackson normally does not).
You will also want to use JacksonUtils
to grab a node factory, reader and pretty printer for anything JSON. Compared
to the basic Jackson's ObjectMapper
,
the one provided by JacksonUtils
deserializes
all floating point numbers as BigDecimal
s by default. This
is done using DeserializationFeature.USE_BIG_DECIMAL_FOR_FLOATS
.
JsonNumEquals
is an Equivalence
over JsonNode
for recursive equivalence of JSON
number values.
Finally, NodeType
is a utility enumeration
which distinguishes between all JSON node types defined by RFC 7159, plus
integer
(used by JSON Schema). Note that since Jackson 2.2, there is
also JsonNode.getNodeType()
, but it
does not make a difference between number
and integer
.