The Java JSON library: a suite of data-processing tools for Java and the JVM
open sourceApache-2.0free
Jackson is the standard JSON library for Java and the JVM: a streaming JSON parser and generator, a data-binding layer that maps Java objects (POJOs) to and from JSON, and annotations to control the mapping. Modules add other data formats (Avro, CBOR, CSV, Protobuf, Smile, TOML, XML, YAML) and data types (Java 8 dates, Guava, Joda and more), so the same object mapping works across them. Version 3.x (tools.jackson) is the actively developed line for new projects, and 2.x (com.fasterxml.jackson) is still maintained with LTS releases; the two use different packages and can coexist.
Problems it solves
- I need to turn Java objects into JSON and back
- Parsing a large JSON file in Java runs out of memory, I need a streaming parser
- I want one library to read and write JSON, YAML, CSV and XML in my Java or Kotlin service
- Serializing Java 8 LocalDate and Instant fields to JSON
Features
- Streaming JSON parser and generator (jackson-core)
- Data binding between Java objects and JSON (jackson-databind ObjectMapper)
- Annotations to control serialization (jackson-annotations)
- Data format modules: Avro, CBOR, CSV, Properties, Protobuf, Smile, TOML, XML, YAML
- Data type modules: Java 8 date/time, JDK 8 types, Guava, Joda and others
- JAX-RS providers
- LTS releases on the 2.x and 3.x lines
Capabilities
| Takes plugins | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Jackson does.
- Gson Google's Java library for converting objects to and from JSON
- FASTJSON 2 High-performance JSON library for Java, the successor to fastjson
- json Ruby's JSON parser and generator, shipped with Ruby as a default gem
- Moshi A modern JSON library for Android, Java and Kotlin
- JSON Crack Visualize JSON, YAML, CSV and XML as interactive graphs
