Hi Sanjay,
(see
http://restlet.tigris.org/servlets/BrowseList?list=discuss&by=thread&from=671405)
you are right, the support for JSON is not realy ready in this
implementation. For now I put the returned object into an
org.json.JSONObject and its serialization is used. But the results are
not good IMO: It calls every getter including Object.getClass(), which
is not very useful. I've planned to use another JSON deserialization,
but don't know in this moment, which one. - Jersey does it realy good
and contains a JAXB provider, which creates JSON instead of XML. Perhaps
we could adopt this way.
If someone wants to contribute, I'm open for help ... Sanjay, would you
share your message body writer? See also
http://www.restlet.org/community/contribute
best regards
Stephan