Jackson Library
Last updated
Was this helpful?
Last updated
Was this helpful?
JSON is a popular data exchange format between browsers and web servers because the browsers can parse JSON into JavaScript objects natively. On the server, however, JSON needs to be parsed and generated using JSON APIs.
Jackson
GSON : is a Java JSON API from Google.
BOON : is a less known Java JSON API, but it is supposedly the fastest of them all. It is being used as the standard JSON API in Groovy.
JSON.org: This was one of the first Java JSON APIs available out there. It is reasonably easy to use, but not as flexible or fast as the other JSON APIs mentioned above.
The Jackson ObjectMapper which parses JSON into custom Java objects, or into a Jackson specific tree structure(tree model).
The Jackson JsonParser which is Jackson's JSON pull parser, parsing JSON one token at a time.
The Jackson ObjectMapper which can generate JSON from custom Java objects, or from a Jackson specific tree structure(tree model).
The Jackson JsonGenerator which can generate JSON one token at a time.
The Java JSON API called Jackson consists of one core JAR file (project) and two other JAR files that use the core JAR file. The three JAR files (projects) in the Jackson JSON API are:
Jackson Core
Jackson Annotations
Jackson Databind