Jackson Introduction (1) Comparison of-jackson2.x and Jackson1.9 _spring

Source: Internet
Author: User
Tags generator elastic search

Part from: Http://blog.csdn.net/chszs

Jackson can easily convert Java objects into JSON objects and XML documents, as well as convert JSON and XML into Java objects. The Jackson Library released its latest version of 2.1 in 2012.10.8.
Jackson Source is currently hosted in GitHub, address: https://github.com/FasterXML/One, Jackson 2.x introduction Jackson 2.x version provides three jar packages for download:
1. Core library: Streaming parser/generator, a flow-type parser and generator.
Download:
Http://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.1.0/jackson-core-2.1.0.jar

2. Annotations Library: DataBinding annotations, a data binding package with annotations.
Download:
Http://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.1.0/jackson-annotations-2.1.0.jar

3. DataBind Library: Objectmapper, JSON tree model, Object Mapper, JSON trees model.
Download:
Http://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.1.0/jackson-databind-2.1.0.jar


From Jackson 2.0,
Core components include: Jackson-annotations, Jackson-core, Jackson-databind.
Data format modules include: Smile, CSV, XML, YAML.

Second, Jackson 1.9.X introduction 1. A single library download: Provides CORE-ASL, MAPPER-ASL, CORE-LPGL, MAPPER-LGPL, Jax-rs, JAX-XC, Mrbean, smile, and other jar pack downloads.


2. Jackson All library: Contains all the jar packages above, packaged into a single jar file.
Download:
Http://jackson.codehaus.org/1.9.10/jackson-all-1.9.10.jar


3. Jackson Mini Library: Contains the Jackson-core library, excluding the annotation library, license file, the use of restricted environment, such as mobile devices, jar package size significantly reduced.
Download:
Http://jackson.codehaus.org/1.9.10/jackson-mini-1.9.10.jar


4. Smile Tool Tool: A command-line tool for converting between Smile and JSON formats.
Download:
Http://jackson.codehaus.org/1.9.10/smile-tool-1.9.10.jar


Note: Smile is a binary JSON data format that is equivalent to the standard JSON data format. The smile format was released in 2010 and was supported by Jackson version 1.6 in September 2010.


Frames that support the smile format:

(1) Jackson JSON Processor: fully supports the smile format, including streaming access, data binding, and tree models.

(2) Libsmile: A C language library that supports reading and writing smile data.

(3) Elastic Search: Support the Smile format as input/output source.

(4) Protostuff: This project supports the smile format as the underlying data format and is also used in one of the RPC formats.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.