Json Tool Introduction Fastjson Gson Jackson

Source: Internet
Author: User

1. Fastjson

Fastjson is a high-performance, fully-functional JSON library written in the Java language. It uses an algorithm of "Suppose ordered fast matching", which improves the performance of JSON parse to the extreme, and is the fastest JSON library in the Java language today.

The Fastjson interface is easy to use and has been widely used in many applications such as cache serialization, protocol interaction, web output, and Android clients.

Fastjson is a Java library that can be used to convert JSON representations of Java objects. It can also be used to convert the JSON string to an equivalent Java object. Fastjson can be arbitrary Java objects including pre-existing objects, you do not work with the source code.

Fastjson Target
    1. Provides the best performance on the server side and Android clients
    2. Provides a simple tojsonstring () and Parseobject () method that will JSON the Java object
    3. Allows non-modifiable objects to be converted from JSON
    4. Broad support for Java generics
    5. Allow a custom representation of an object
    6. Supports arbitrary complex objects (extensive use with deep inheritance hierarchies and generic types)
2. Gson

Gson is a Java library that can be used to convert a JSON representation of a Java object. It can also be used to convert the JSON string to an equivalent Java object. Gson can be arbitrary Java objects including pre-existing objects, you do not work with the source code.

Gson Target
    1. Provides a simple Tojson () and Fromjson () method that will JSON the Java object
    2. Allows non-modifiable objects to be converted from JSON
    3. Broad support for Java generics
    4. Allow a custom representation of an object
    5. Supports arbitrary complex objects (extensive use with deep inheritance hierarchies and generic types)
3. Jackson

Jackson was formerly known as the Java Standard JSON library (or JVM platform), or, for Java's "Best JSON parser" for short, "JSON Java". More importantly, Jackson is a Java Data processing tool (and Java Virtual Machine platform), including the flagship stream of the JSON parser/generator library, matching data binding library (POJOs
To and from JSON) and additional modules in Avro, BSON, CBOR, CSV, Smile, (Java) Properties, Protobuf, XML or YAML; Data types that are widely used by data types that are supported by the format module of the large data set such as guava, Joda, pcollections and many more. and the actual core components of their own projects-including three core packages (streaming, DataBind, annotations; data format libraries; data type libraries; Jax-rs provider;; and miscellaneous groups other extensions-this project serves as a central hub for connecting all the fragments.

Json Tool Introduction Fastjson Gson Jackson

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.