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

Reply via email to