Loading... Cancel

SOJO - Simplify your Old Java Objects R

November 12th, 2006

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.

SOJO Official Site

Total 1 response found

Close
  •   Samiha Esha

    Thu Jan 70 06:33

    Wow Hasan.....nice banner :)Hope new version will present us new surprises...:)

    Good Luck !!

    Regards,

    Samiha Esha :)