I knew this would finally happen. :) After evaluating the many JSON solutions out there, I also find Jackson to be the best. Cheers!
-Tal On 11/25/2009 04:39 AM, Jerome Louvel wrote: > Hi Ben, > > JSON-Simple looks fine as well, but lacks an automatic Object<-> JSON > mapping mechanism. JSON-lib has such a mechanism, but looks less optimized > and powerful than the one of Jackson. In addition, Jackson looks very fast > and lightweight (no dependencies). > > As I was getting annoyed yesterday but an XStream + Jettison issue yesterday > at a customer site, I went ahead and added the Jackson extension to Restlet. > It will be available in the next snapshots. > > If you put this extension in the classpath before the XStream extension, both > solutions will be leverage to offer both XML and JSON automatic serialization > of the same representation beans. > > Best regards, > Jerome Louvel > -- > Restlet ~ Founder and Lead developer ~ http://www.restlet.org > Noelios Technologies ~ Co-founder ~ http://www.noelios.com > > > -----Message d'origine----- > De : Ben R Vesco [mailto:[email protected]] > Envoyé : lundi 23 novembre 2009 17:58 > À : [email protected] > Objet : Re: suggest jsonRepresentation update > > I'd recommend a look at http://code.google.com/p/json-simple/ as well > (it's what I'm using in my Restlet project). It generates very nice > json (at least as nice as Jackson) but is still lightweight like > org.json in terms of number of classes and complexity of code. > > > On Mon, Nov 23, 2009 at 8:43 AM, Jerome Louvel > <[email protected]> wrote: > >> Hi Neel, >> >> >> >> It’s would be hard to support all the JSON libraries around. Another one we >> have in our radar is Jackson for its better JSON<-> Object serialization >> mechanism: >> >> >> >> “Add support for Jackson” >> >> http://restlet.tigris.org/issues/show_bug.cgi?id=812 >> >> >> >> How would JSON-Lib compare to our current JSON and XStream/Jettison >> extensions, and to Jackson? >> >> >> >> In any case, you could build your own extension for JSON-Lib and propose it. >> See the detailed process: >> >> http://wiki.restlet.org/developers/179-restlet/295-restlet.html >> >> >> >> Best regards, >> Jerome Louvel >> -- >> Restlet ~ Founder and Lead developer ~ http://www.restlet.org >> Noelios Technologies ~ Co-founder ~ http://www.noelios.com >> >> >> >> >> >> >> >> >> >> De : neel [mailto:[email protected]] >> Envoyé : vendredi 13 novembre 2009 04:31 >> À : [email protected] >> Objet : suggest jsonRepresentation update >> >> >> >> Jsonlib is good tool for parsing the json data, but there are no support in >> the restlet. i suggest the jsonRepresentation update to use the jsonlib to >> parsing data >> >> >> >> 2009-11-13 >> >> ________________________________ >> >> guozhen07 >> > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423474 > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2424182 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2424312

