Here is my code
public class JustinApplication extends Application {
public synchronized Restlet createInboundRoot() {
Router router = new Router();
router.attach("/forresource/{id}", JustinResource.class);
return router;
}
}
and am trying to send a JSon data through the URL
{"ID":"324"}.
I want to receive the json data in my resource class. I can get only as a string like this %7B%22ID%22:%22324%22%7D
. But I NEED EXACTLY THE SAME DATA.
How can I do this with the restlet?