Hi Ivano, I'm not sure to fully understand your question. Are you looking for integration of GSON library into Restlet in addition to Jackson and XStream/Jettison support, or are you looking for an alternative to GSON working in a similar way?
In general, we recommend using the org.restlet.ext.jackson extension for JSON conversion and org.restlet.ext.xstream for XML conversion. Best regards, Jerome -- http://www.restlet.org http://twitter.com/#!/jlouvel -----Message d'origine----- De : Ivano Carrara [mailto:[email protected]] Envoyé : samedi 10 septembre 2011 12:07 À : [email protected] Objet : Convert JSON/XML to Java List object Hi all, Using Restlet 2.0 I'm getting contents form remote services very well.. Time to time I get data in XML or JSON format. For example receiving JSON data, actually I convert the data to Java List object using the "google-gson", a Java library to convert JSON to Java objects and vice-versa. The statement is the below: List<AlfContent> alfContents = new Gson().fromJson(jsonContent.toString(), new TypeToken<List<AlfContent>>() {}.getType()); My wish is to use one only JSON/XML framework, so I'm asking how I can obtain the same conversion service using Restlet framework... Thank you in advance for any help!! Ivano C. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=28370 14 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2838208

