The content originates from the Internet.
JSON is a very important data structure, which is widely used in web development. Each developer should take a good look at the underlying implementation of JSON. Before using JSON, it is important to understand which jar files are needed first, it is easy to make mistakes when you first use them, and if you do not add the correct jar package, you will report a variety of problems. The following six jar packages need to be prepared before using JSON:
Commons-lang-1.0.4.jar
Commons-collections-2.1.jar
Commons-beanutils-1.8.0.jar
Json-lib-2.4.jar
Ezmorph-1.0.6.jar
Commons-logging-1.1.jar
JSON required jar package Download:
Http://files.cnblogs.com/files/longshiyVip/json_jar.zip
Some points need to be explained:
(1) Json-lib The latest version can be downloaded from this place: http://sourceforge.net/projects/json-lib/files/json-lib/
(2) Ezmorph is a simple Java class library for converting one bean to another bean. The implementation of its dynamic bean depends on the commons-beanutils package. Ezmorph can download the source code in this place: http://sourceforge.net/projects/ezmorph/files/ezmorph/
(3) Commons-beanutils is a class library that operates Java beans and relies on commons-collections.
(4) The Commons-collections class library is the encapsulation of various collection classes and collection tool classes.
JSON Learning Series (1)-Download the jar package to use with JSON