1. Import the required jar package:
json-lib-2.4-jdk15.jar
ezmorph-1.0.6.jar
commons-logging.jar
commons-lang.jar
commons-collections.jar
commons-beanutils.jar
Array, object, Map, and List are converted into JSON data and converted into JSON:
JSONArray.fromObject(集合,对象,list,Map); import net.sf.json.JSONArray;