Thread: [json-lib-user] Getting ready for 2.0
Brought to you by:
aalmiray
From: Andres A. <aal...@ya...> - 2007-07-10 14:53:40
|
Dear Json-lib users,=0AThe next release (2.0) is almost ready, I'm still po= lishing some bits=0A(like the docs) and so far we have no more bugs to fix.= If you'd like=0Ato try the latest alpha release (2.0a3) you can grab a cop= y from =0A=0Ahttp://json-lib.sourceforge.net/m2/repo/snapshot/net/sf/json-l= ib/json-lib/2.0a3/=0A=0AFor those of you that may not have been up to date = with what's been happening=0Awith the next release you may find a list of w= hat's coming up at =0A=0Ahttp://jroller.com/page/aalmiray/?anchor=3Djson_li= b_features_for_2=0A=0AFeedback is always appreciated.=0A=0ACheers,=0AAndres= =0A =0A-------------------------------------------=0Ahttp://jroller.com/pag= e/aalmiray=0Ahttp://www.linkedin.com/in/aalmiray=0A--=0AWhat goes up, must = come down. Ask any system administrator.=0AThere are 10 types of people in = the world: Those who understand binary, and those who don't.=0ATo under= stand recursion, we must first understand recursion.=0A=0A----- Mensaje ori= ginal ----=0ADe: Andres Almiray <aal...@ya...>=0APara: Petr V. <great= ma...@ya...>; jso...@li...=0AEnviado: jueves, 5= de julio, 2007 13:30:48=0AAsunto: Re: [json-lib-user] Json and POJO Conver= sion=0A=0AYour welcome Pter, in fact when transforming from JSON to Java no= t only do arrays will be=0Ahandled but arrays of primitives, muldimensional= arrays and collections.=0AJust call JSONSerializer.toJava() after properly= configuring targetClass and classMap (if needed)=0A=0AYou may find more in= fo at the project site.=0A=0ACheers,=0AAndres=0A =0A-----------------------= --------------------=0Ahttp://jroller.com/page/aalmiray=0Ahttp://www.linked= in.com/in/aalmiray=0A--=0AWhat goes up, must come down. Ask any system admi= nistrator.=0AThere are 10 types of people in the world: Those who understan= d binary, and those who don't.=0ATo understand recursion,=0A we must fi= rst understand recursion.=0A=0A----- Mensaje original ----=0ADe: Petr V. <g= rea...@ya...>=0APara: Andres Almiray <aal...@ya...>; json-lib= -u...@li...=0AEnviado: jueves, 5 de julio, 2007 13:13:42=0A= Asunto: Re: [json-lib-user] Json and POJO Conversion=0A=0AThanks Andres, yo= ur reply was very useful.=0A =0A I also found http://www.json.org/javadoc/o= rg/json/JSONObject.html#JSONObject(java.lang.Object,%20java.lang.String[])= =0A =0A but then I have to pass the attributes name of POJO object. =0A=0AI= will try the toJSON( ) method of JSONSerializer, would it be able to conve= rt the collections in POJO like arrays , maps, lists=0A etc??=0A=0AThanks a= lot once again, =0A=0APetr=0A=0AAndres Almiray <aal...@ya...> wrote:= Hi Petr,=0AI think you can find what you're looking for in net.sf.json.JSO= NSerializer=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=0A blank,=0Athe result will be a DynaBean compatible w= ith jakarta's bean-utils.=0A =0ACheers,=0AAndres=0A=0A=0A------------------= -------------------------=0Ahttp://jroller.com/page/aalmiray=0Ahttp://www.l= inkedin.com/in/aalmiray=0A--=0AWhat goes up, must come down. Ask any system= administrator.=0AThere are 10 types of people in the world: Those who unde= rstand binary, and those who don't.=0ATo understand recursion, we must= first understand recursion.=0A=0A----- Mensaje original ----=0ADe: Petr V.= <gre...@ya...>=0APara: jso...@li...=0AEnvi= ado: jueves, 5 de julio, 2007=0A 12:46:43=0AAsunto:=0A [json-lib-user] Json= and POJO Conversion=0A=0AHi,=0A=0AI have some POJO Objects and I need to c= onvert them into JSON Objects and vice versa. Is there Any API that provide= s this functionality or I have to do manually conversion.=0A=0AI saw some s= ample code here =0A=0Ahttp://dev2dev.bea.com/pub/a/2007/02/introduction-jso= n.html=0A=0Awhere they are converting address book entry (POJO) into JSON o= bject manually and then converting it into String. The next question is tha= t can I make JSON object using that String again ?? Is there any efficient= way to convert pojo into json or vice versa, please let me know.=0A=0AThan= ks,=0A=0APetr V.=0A =0ASick sense of humor? Visit Yahoo! TV's Comed= y with an Edge to see=0A what's on, when.=0A ---------------------------= ----------------------------------------------=0AThis SF.net email is spons= ored by DB2 Express=0ADownload DB2 Express C - the FREE version of DB2 expr= ess and take=0Acontrol of your XML. No limits. Just data. Click to get it n= ow.=0Ahttp://sourceforge.net/powerbar/db2/=0A______________________________= _________________=0Ajson-lib-user mailing list=0Aj...@li...urce= forge.net=0Ahttps://lists.sourceforge.net/lists/listinfo/json-lib-user=0A= =0A=0A=0A=0A=0A=0A Do You Yahoo!? La mejor conexi=F3n a Internet y 2G= B extra a tu correo por $100 al mes. http://net.yahoo.com.mx =0A =0A = =0ABe a better Heartthrob. Get better relationship answers from someone who= knows.=0AYahoo! Answers - Check it out. =0A=0A=0A=0A=0A=0A=0A=09=09 =0ADo= You Yahoo!? =0ALa mejor conexi=F3n a Internet y 2GB extra a tu correo por = $100 al mes. http://net.yahoo.com.mx =0A-----------------------------------= --------------------------------------=0AThis SF.net email is sponsored by = DB2 Express=0ADownload DB2 Express C - the FREE version of DB2 express and = take=0Acontrol of your XML. No limits. Just data. Click to get it now.=0Aht= tp://sourceforge.net/powerbar/db2/=0A______________________________________= _________=0Ajson-lib-user mailing list=0Aj...@li...= t=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 |