Json development details: the jar packages used by the server and the client in json are different.

Source: Internet
Author: User

Json development details: the jar packages used by the server and the client in json are different.

Reprinted please indicate the source: http://blog.csdn.net/bettarwang/article/details/43958275

Previously, I did not download the relevant jar packages from the json official website for convenience. Instead, I intelligently copied the jar packages in Android and directly used them on the server. But in fact, the json-related jar package in the Android sdk is actually a subset of all the json jar packages, that is, incomplete. In fact, it mainly focuses on Parsing rather than creating, therefore, using it as the jar package on the server will cause some problems, especially when the Array or List of the JavaBean is passed, this problem has been entangled for a long time before it is found that this is the cause.

In fact, if the server needs to use json, introduce the following jar package:

Ezmorph-1.0.6.jar

Json-lib-2.4-jdk15.jar

Commons-beanutils-1.8.3.jar

Commons-collections-3.2.1.jar

Commons-lang-2.6.jar

Commons-logging-1.1.1.jar

Json jar package collection

Of course, you can also download the latest jar package from the json Official Website: http://commons.apache.org/index.html


Related Article

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.