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