Re: [json-lib-user] Json and POJO Conversion
Brought to you by:
aalmiray
From: Andres A. <aal...@ya...> - 2007-07-05 17:53:26
|
Hi Petr,=0AI think you can find what you're looking for in net.sf.json.JSON= Serializer=0AIt will let you serialize a Java bean, map, array, collection = into JSON and back, =0Ayou may specify a target class when converting back = to Java or leave it blank,=0Athe result will be a DynaBean compatible with = jakarta's bean-utils.=0A =0ACheers,=0AAndres=0A=0A=0A----------------------= ---------------------=0Ahttp://jroller.com/page/aalmiray=0Ahttp://www.linke= din.com/in/aalmiray=0A--=0AWhat goes up, must come down. Ask any system adm= inistrator.=0AThere are 10 types of people in the world: Those who understa= nd binary, and those who don't.=0ATo understand recursion, we must firs= t understand recursion.=0A=0A----- Mensaje original ----=0ADe: Petr V. <gre= atm...@ya...>=0APara: jso...@li...=0AEnviado: = jueves, 5 de julio, 2007 12:46:43=0AAsunto: [json-lib-user] Json and POJO C= onversion=0A=0AHi,=0A=0AI have some POJO Objects and I need to convert them= into JSON Objects and vice versa. Is there Any API that provides this func= tionality or I have to do manually conversion.=0A=0AI saw some sample code = here =0A=0Ahttp://dev2dev.bea.com/pub/a/2007/02/introduction-json.html=0A= =0Awhere they are converting address book entry (POJO) into JSON object man= ually and then converting it into String. The next question is that can I m= ake JSON object using that String again ?? Is there any efficient way to co= nvert pojo into json or vice versa, please let me know.=0A=0AThanks,=0A=0AP= etr V.=0A =0A =0ASick sense of humor? Visit Yahoo! TV's =0AComedy with= an Edge to see what's on, when. =0A=0A=0A---------------------------------= ----------------------------------------=0AThis SF.net email is sponsored b= y DB2 Express=0ADownload DB2 Express C - the FREE version of DB2 express an= d take=0Acontrol of your XML. No limits. Just data. Click to get it now.=0A= http://sourceforge.net/powerbar/db2/=0A____________________________________= ___________=0Ajson-lib-user mailing list=0Aj...@li...urceforge.= net=0Ahttps://lists.sourceforge.net/lists/listinfo/json-lib-user=0A=0A=0A= =0A=0A=0A=0A=0A=09=0A=09=0A=09=09=0A_______________________________________= ____________________ =0ADo You Yahoo!? =0ALa mejor conexi=F3n a Internet y = <b >2GB</b> extra a tu correo por $100 al mes. http://net.yahoo.com.mx =0A |