Hi Sean, Ok, I'm convinced to do the move for 1.1 :)
I've updated the RFE with details: http://restlet.tigris.org/issues/show_bug.cgi?id=131 Best regards, Jerome > -----Message d'origine----- > De : news [mailto:[EMAIL PROTECTED] De la part de Sean Landis > Envoyé : lundi 5 novembre 2007 15:53 > À : discuss@restlet.tigris.org > Objet : Re: JSON represenation based on json-lib from > http://json-lib.sourceforge.net/ > > Jerome Louvel <contact <at> noelios.com> writes: > > > > > > > Hi Sean, > > > > There is already this constructor in the JsonRepresentation class: > > public JsonRepresentation(JSONObject jsonObject) > > > > So you can use something like this with 1.0 already: > > new JsonRepresentation(new JSONObject(myObject, [other args])) > > > > Am I missing something? What additional constructors are > you looking for? If > > it doesn't require a switch to JSON-lib, I could probably > easily add it to > > 1.1 M1. > > > > Best regards, > > Jerome > > Hi Jerome, > The JsonRepresention class is fine. The problem is the > version of JSON it's > built against. It appears to be an older or alternative > library (I don't know > much about the history of JSON) and it does not have a > constructor that > accepts a bean. So creating the JSON object is very painful. > Maintenance can > be a challenge too. > > Sean