If you are looking for software to use, go to Huajun Software Park! software release

Hello, if there is a need for software inclusion, please package the software and attach the software name, software introduction, software-related screenshots, software icon, soft copy, and business license (if you do not have a business license, please provide the front and back of the corresponding developer ID card) and a photo of yourself holding your ID card) and send it to your email http://softwaredownload4.com/sbdm/user/login

Close >>

Send to email:news@onlinedown.net

Close >>

Location: front pagePC softwareNetwork softwareJAVA program Alibaba Fastjson Jar package
Alibaba Fastjson Jar package

Alibaba Fastjson Jar package PC version

QR code
  • Software licensing: free software
  • Software size: 2.9MB
  • Software rating:
  • Software type: Domestic software
  • Update time: 2024-11-01
  • Application platform: Win All
  • Software language: Simplified Chinese
  • Version: PC version

Download the service agreement at the bottom of the page

Software introduction Related topics FAQ Download address

Basic introduction
Alibaba Fastjson Jar package first LOGO
Alibaba Fastjson Jar package is a Fastjson jar package that can help use the Fastjson function. Fastjson is a high-performance and complete JSON library written in Java language. Of course, the fastjson jar package is necessary.

Screenshot of Alibaba Fastjson Jar package

Software features

·high performance·

fastjson uses an original algorithm to increase the speed of parse to the extreme, surpassing all json libraries, including jackson, which was once known as the fastest. And it also surpasses Google's binary protocol protocol buf.

·Support standards·

Fastjson fully supports the standard of http://json.org and is also one of the reference implementations included on the official website.

·Powerful function·

Supports various JDK types. Including basic types, JavaBean, Collection, Map, Enum, generics, etc.

Supports circular references

·No dependence·

There is no need for extra jars and it can run directly on the JDK.

·Wide range of support·

Supports JDK 5, JDK 6, Android, Alibaba Cloud mobile phones and other environments.

·Open Source·

Apache License 2.0

The code is hosted on github.org

·Fully tested·

fastjson has more than 1,500 testcases, which will be run every time it is built. The rich test scenarios ensure functional stability.

Content preview

Screenshot of Alibaba Fastjson Jar package

Screenshot of Alibaba Fastjson Jar package

Tips

maven

If you use Maven, the maven repository configuration is as follows:

Screenshot of Alibaba Fastjson Jar package

Add dependencies to the pom.xml file:

Screenshot of Alibaba Fastjson Jar package

serialization

The most basic functions involved in a JSON library are serialization and deserialization. Fastjson supports direct serialization of java beans. You can use the com.alibaba.fastjson.JSON class for serialization and deserialization.

basic serialization

Serialization is to convert JavaBean objects into text in JSON format.

Screenshot of Alibaba Fastjson Jar package

In this example, the JSON.toJSONString method is called to convert object o into JSON-formatted text.

Use single quotes

Standard JSON uses double quotes. JavaScript supports json text in single quote format. Fastjson also supports this feature. Just turn on the SerializerFeature.UseSingleQuotes feature. For example:

Screenshot of Alibaba Fastjson Jar package

There are more than a dozen SerializerFeatures that can be selected during fastjson serialization. You can choose and use them according to your own needs.

FAQ

closure