Skip navigation links

Package com.github.fge.jackson

Jackson utility classes

See: Description

Package com.github.fge.jackson Description

Jackson utility classes

JsonLoader contains various methods to load JSON documents as JsonNodes. 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 BigDecimals 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.

Skip navigation links