Using the Jackson API for processing JSON

Jackson is a multipurpose data processing Java library. The primary capability of this tool is the support for processing JSON. It also has additional modules for processing the data encoded in other popular formats, such as Apache Avro (a data serialization system), Concise Binary Object Representation (CBOR), a binary JSON format, Smile (a binary JSON format), XML, comma-separated values (CSV), and YAML. In this section, you will learn how to use Jackson APIs to process JSON.

Jackson provides the following three methods for processing JSON:

  • Tree model APIs: This method provides APIs for building a tree representation of a JSON document
  • Data binding API: This method provides APIs for converting a JSON document into and from Java objects
  • Streaming API: This method provides streaming APIs for reading and writing a JSON document

We will discuss the preceding three methods in detail in this section.

To learn the dependencies of Jackson2 APIs, visit https://github.com/FasterXML/jackson-docs/wiki/Using-Jackson2-with-Maven.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.28.107