svenson is a Java5 JSON generator/parser. It lets you convert Java object graphs into JSON and vice versa. svenson offers an API and annotations to aid you in this.
The initial code for svenson grew out of a simple generator tool class I once wrote for my projects. I wrote JSON parsing code while working on my own couchdb driver called jcouchdb. Later I decided to create a standalone svenson project because the outcome seemed to be sufficient for all kinds of scenarios not involving jcouchdb.
Features
- Free choice of java side objects: From total generic list/map scenarios to mapping POJOs to/from JSON or a mix between those two, from JSON generation being something your classes handle themselves to something JSONifying them.
- Annotations and interfaces to help you to create your own applications that work with JSON.
- Quality Assurance with unit tests ensures svenson keeps working after changes.
Read more about memory consumption changes in svenson 1.3
Changelog
Changes from 1.2.8 to 1.3.0:
- support for object factories implementing org.svenson.ObjectFactory
- support for parsing JSON from a stream.
- large improvements on memory consumption.
Changes from 1.2.7 to 1.2.8:
- embarassing failure to account for Beans as properties of other beans fixed. Thanks to Dave Bordoley for finding this.
See more changes in the project sources
Improve Svenson
I'm always interested in getting new ideas to improve my projects, so if your requirements are not met by svenson, you could try contacting me to give me a clearer idea of what could be added.