New experimental branch for the refactoring of the existing JSON related code.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634077 13f79535-47bb-0310-9956-ffa450edef68
A pretty large commit (I couldn't isolate the changes in smaller atomic commits as I was hoping) that includes the following:
* moved the json-lib jar (json-lib-2.2.3-jdk15.jar) from the framework/webapp to the framework/base component: this will facilitate the definition of a small set of classes for the management of JSON conversions; in one of the next commits we will replace json-lib with jackson library
* removed the SQL select Parser.jj (parser definition) and its unit tests: it was not used (and never used) by any OFBiz code
* removed the JSON.jj (parser definition) and its unit tests: it was not used (and never used) by any OFBiz code apart from the JSON Converters (now migrated to json-lib, see next items in this list) some utility methods in UtilIO.java (that have been removed too because they have never been used in OFBiz) 
* removed the JavaCC jar and related ant scripts because no more needed after the removal of Parser.jj and JSON.jj
* converted the JSONConverter code that was based on JSON.jj to json-lib; some of the converters (the ones for basic type conversions) have been removed because they didn't seem to be useful; some new converters have been created (for List/Map to JSON conversions)
* added a new class org.ofbiz.base.conversion.JSON that have been contributed by Adrian Crum that will be used as a facade for simplifying the client code and for hiding the specific JSON library being used; at the moment the class is not used but one of the next commit should address this by converting the signatures of the JSON Converters to use this class rather than the json-lib JSON class
* in CommonEvents, converted some client code to use the new JSON Converter framework; however this code will be modified soon to use the org.ofbiz.base.conversion.JSON object instead
* removed an unused method: ImageManagementServices.toJsonObject(...)
* added TestBooleanConverters to the list of tests (it was missing)
* new unit tests for the new JSON converters


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634459 13f79535-47bb-0310-9956-ffa450edef68
Moved JSON.java to the lang folder.

base/conversion - for converters only.

base/lang - for OFBiz-specific data types only


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634470 13f79535-47bb-0310-9956-ffa450edef68
Add Jackson JSON library.

http://jackson.codehaus.org


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634476 13f79535-47bb-0310-9956-ffa450edef68
Integrate JSON.java with the Jackson library.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634481 13f79535-47bb-0310-9956-ffa450edef68
Trivial code cleanup.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634484 13f79535-47bb-0310-9956-ffa450edef68
An example of using the JSON class in client code. This is for illustration only - it has not been tested.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634501 13f79535-47bb-0310-9956-ffa450edef68
Fix equals method in JSON.java.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634506 13f79535-47bb-0310-9956-ffa450edef68
Argh. Fix equals method in JSON.java.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634507 13f79535-47bb-0310-9956-ffa450edef68
Refactored Ajax category tree to use the common request json response rather than a custom method. Thanks to Amardeep Singh Jhajj for the help on the jQuery modification required.
This change removes the dependency on a specific JSON library from CategoryServices.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634590 13f79535-47bb-0310-9956-ffa450edef68
Formatting fixes.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634620 13f79535-47bb-0310-9956-ffa450edef68
Refactored Ajax product store tree to use the common request json response rather than a custom method.
This change removes the dependency on a specific JSON library.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634805 13f79535-47bb-0310-9956-ffa450edef68
Formatting fixes


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634807 13f79535-47bb-0310-9956-ffa450edef68
Removed some unused controller-requests/events returning a JSON response.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634808 13f79535-47bb-0310-9956-ffa450edef68
Refactored Ajax hr tree to use the common request json response rather than a custom method.
This change removes the dependency on a specific JSON library.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634812 13f79535-47bb-0310-9956-ffa450edef68
Removed no more used JSON method (forgot to remove in my last commit).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634813 13f79535-47bb-0310-9956-ffa450edef68
Refactored Ajax-based requests for ebaystore to use the common request json response rather than a custom method.
This change removes the dependency on a specific JSON library.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634885 13f79535-47bb-0310-9956-ffa450edef68
Integrate JSON.java with the converter framework.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1634892 13f79535-47bb-0310-9956-ffa450edef68
Added GenericValue<->JSON convertes. Entity values can be serialized to JSON.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1635049 13f79535-47bb-0310-9956-ffa450edef68
Removed json-lib jar: to/from JSON conversions are now done with Jackson.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/json-integration-refactoring@1635053 13f79535-47bb-0310-9956-ffa450edef68