Ok, I have found the solution, written as follows:

One has to add the following maven dependency into the project's pom file:
                <dependency>
                        <groupId>org.restlet.jee</groupId>
                        <artifactId>org.restlet.ext.json</artifactId>
                        <version>${restlet.version}</version>
                </dependency>

At the client side:
               ClientResource cr = new ClientResource(
                                "http://localhost:8182/service/description";);
                JsonConverter c = new JsonConverter();
                JSONObject jo = c.toObject(cr.get(MediaType.APPLICATION_JSON),
JSONObject.class, cr);
                System.out.println(jo);

cheers,
Daku

--
View this message in context: 
http://restlet-discuss.1400322.n2.nabble.com/Unable-to-find-a-converter-for-this-representation-application-json-UTF-8-tp6396319p6396468.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2746069

Reply via email to