JsonMarshaller: Java 1.5 Marshalling
Written by on March 23rd, 2007 in Ajax News.
JsonMarshaller is a Java 1.5 library that allows marshalling and unmarshalling of JSON objects to and from Java objects. This project’s goal is above all ease of use, transparency and static type safety.
Example
If you have the following Java class:
JAVA:
and you created a new Book() and populated it with info it could marshal too:
JSON:
-
{title: "Vocation Createurs",
isbn: "2829302680",
authors: [{firstName: "Barbara", lastName: "Polla"},
{firstName: "Pascal", lastName: "Perez"}]}
Source: Ajaxian
Original Article: http://ajaxian.com/archives/jsonmarshaller-java-15-marshalling