JJSon is a simple API for dealing with the JSON format. It needs no dependencies and just offers the features you really need to work. You can find the JSON Specification there: http://www.json.org
JJSON actually uses some code from Apache Commons Lang. The code is shaded into the jar file, and so you don't need to care about this. The Lang-Classes were relocated to the jjson-Package, you are save to use your own version of Commons Lang. In addition, only a part of this jar is delivered.
There is a Struts 2 plugin available, which can be used as a result type to return JSON Strings.
- Using annotations to create json strings out of objects
- Map json strings into POJOs
- Creating a java object net out of a json string
- Creating a json string out of a java object net
The new version should work for a lots of cases. Mapping with annotations and working with json using the apis objects work in both directions.
The struts 2 plugin is pretty new and has the ususal flaws.
Release numbers will have the follow format: major.minor.patch
- Breaking backwards compatibility bumps the major
- Backward compatible changes bumps the minor
- Backward compatible Bug fixes bump the patch
Please also see: http://semver.org/