[Cs5500] Nice way of converting ANY Object to string and back

Mohinish Vinnakota vinnakota.m at husky.neu.edu
Wed Nov 30 02:51:20 EST 2011


Hi All,

If anyone wants to serialize an object to string and then back(which is done rarely and for specific requirements) without using java.io.serializable, check the link below: 
http://code.google.com/p/google-gson/

This project implements functions which convert any object to JSON string and back. This is lot more easier than breaking you head with serialization. Also security wise(in case where you need to executing queries on db, JSON proves to be secure, and avoids sql injections). Honestly speaking i wasted lot of hours on serialization before i saw this. 

Thank you,
Mohinish Vinnakota
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the Cs5500 mailing list