Loading...
Very interesting library, JSON, CSV and many way you can serialize your java objects. (also deserialize)
i have ran the following example:
DomainObject o = new DomainObject();
o.setDescription( “my description is too big” );
o.setEmail( “hasan–AT–somewherein.net” );
o.setId( new Integer(22));
o.setName( “nhm tanveer” );
o.setPhone( “+2323blah blah” );Serializer sr = new JsonSerializer();
System.out.println( sr.serialize( o ) );
from the SOJO document:
The intention for this project is a Java framework, that convert JavaBeans in a simplified representation. So it is easy and uniformly to handle and control the access to JavaBeans properties.
The main goal from this frameworks is, that SOJO can convert complex Java-Object graphs (with cycle detection) to a desired structure. The framework provide a “pluggable” basis to integrate different kind of conversions (also your own implementations). With this infrastructure can solve problems, where POJOs are not supported or are not the best decision.







| www.flickr.com |
Leave a reply