cs notebook1
  • Introduction
  • sort algorithm
  • Overloading VS Overriding
  • multithreading
  • Concurrency0
  • Concurrency1
  • ExecutorService
  • iteration & recursion
  • IO
  • Marker interface(Serializable, Clonnable&Remote)
  • Jackson Library
  • java.lang.System.*
  • Virtual Memory
  • Java ClassLoader
  • interfaceVSabstractClass
  • ENUM
Powered by GitBook
On this page
  • 1 JSON is short for JavaScript Object Notation.
  • 1.1 Java JSON APIs
  • 1.2
  • Jackson contains 2 different JSON parsers:
  • Jackson also contains two JSON generators:
  • 2. Jackson Installation

Was this helpful?

Jackson Library

PreviousMarker interface(Serializable, Clonnable&Remote)Nextjava.lang.System.*

Last updated 6 years ago

Was this helpful?

1 JSON is short for JavaScript Object Notation.

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.

1.1 Java 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.

1.2

Jackson contains 2 different JSON parsers:

  • 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.

Jackson also contains two JSON generators:

  • 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.

2. Jackson Installation

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

http://tutorials.jenkov.com/java-json/index.html
http://tutorials.jenkov.com/java-json/jackson-installation.html