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
- Provides the best performance on the server side and Android clients
- Provides a simple tojsonstring () and Parseobject () method that will JSON the Java object
- Allows non-modifiable objects to be converted from JSON
- Broad support for Java generics
- Allow a custom representation of an object
- 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
- Provides a simple Tojson () and Fromjson () method that will JSON the Java object
- Allows non-modifiable objects to be converted from JSON
- Broad support for Java generics
- Allow a custom representation of an object
- 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