I am trying very simple scenario in which my resource method accepts
Representation and then in the method I pass that representation to
jsonrepresentation code is as follows:
public Representation scanRequest(Representation entity){
//Entity recieved is InputRepresentation
JsonRepresentation rep = new JsonRepresentation(entity);
rep.getJsonObject();//This returns null as jsonobject is
null in the rep formed above.
}
And the content type of the message I am sending is application/json.
Also tried with text/json but no luck.
Any clues what can be wrong with this.
Thanks,
Rahul
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2390691