+1 use google gson . There is a ongoing project to rewrite Axis2 JSON processing using google gson, we have evaluated with a POC and receive some some exciting numbers for performance tests. From 1.7.0 onwards gson will be a Axis2 dependency too.
Thanks ! On Wed, Mar 28, 2012 at 3:24 PM, Sanjaya Vithanagama <[email protected]> wrote: > Hi Suho, > > We have simple-json[1] but it doesn't allow direct conversions. So you'd > have to create json objects ground up. But if your Java objects are > serializable and type safe, Gson should be the correct approach as it allows > one line conversion using #toJson(object). In that case +1 for adding it to > orbit . > > [1] https://svn.wso2.org/repos/wso2/carbon/orbit/trunk/json-simple > > Regards, > SanjayaV. > > On Wed, Mar 28, 2012 at 3:06 PM, Suhothayan Sriskandarajah <[email protected]> > wrote: >> >> Hi >> >> I have a use case in which I need to convert json to java object and >> vice-versa. >> I found google gson[1] is capable of doing this conversion. But currently >> its not used in our platform >> Are we using any alternatives to this? else I can go ahead and include >> google gson. >> >> [1] http://code.google.com/p/google-gson/ >> >> Thanks >> Suho >> >> -- >> S. Suhothayan >> Software Engineer, >> Data Technologies Team, >> WSO2, Inc. http://wso2.com >> lean.enterprise.middleware. >> >> email: [email protected] cell: (+94) 779 756 757 >> blog: http://suhothayan.blogspot.com/ >> twitter: http://twitter.com/suhothayan >> linked-in: http://lk.linkedin.com/in/suhothayan >> >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> > > > > -- > Sanjaya Vithanagama > WSO2, Inc.; http://wso2.com > lean.enterprise.middleware > > cell: +94 71 342 2881 > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > -- Sagara Gunathunga Technical Lead; WSO2, Inc.; http://wso2.com Blog - http://ssagara.blogspot.com _______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
