A Connector to convert from a List to a JSON String, using the json-lib library.
JSON-lib is a java library for transforming beans, maps, collections, java arrays and XML to JSON and back again to beans and DynaBeans.
Json-lib comes in two flavors, depending on the jdk compatibility. json-lib-x.x-jdk13 is compatible with JDK 1.3.1 and upwards. json-lib-x.x-jdk15 is compatible with JDK 1.5, includes support for Enums in JSONArray and JSONObject.
Here we use the json-lib-2.4-jdk15.jar from http://hivelocity.dl.sourceforge.net/project/json-lib/json-lib/json-lib-...
Json-lib requires (at least) the following dependencies in your classpath:
jakarta commons-lang 2.5 jakarta commons-beanutils 1.8.0 jakarta commons-collections 3.2.1 jakarta commons-logging 1.1.1 ezmorph 1.0.6