I'm not sure how (even though I think it was jettyson missing), but I got it
working with org.json.jar, jettyson-1.3.jar, org.restlet.ext.json.jar,
org.restlet.ext.xml.jar, org.restlet.ext.xstream.jar,
com.thoughtworks.xstream.jar.
So now I can use:
ClientResource clientResource = new ClientResource("http://localhost:8182");
ContactResource contactResource =
clientResource.wrap(ContactResource.class);
Contact contact = contactResource.retrieve();
And I have a Contact object to use.
Or:
clientResource.get(MediaType.APPLICATION_JSON).write(System.out);
And I have a JSON representation of a Contact object.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2730168