In the mean time, I just created another class to wrap the first one. It works.
Bruno
>
> I am not sure i understand.
> Do you need to get another root element in addition to what is generated by JAXB?
> I.e. for a xml:
>
> <bean>
> <name>Jack</name>
> </bean>
>
> which could currently be represented in JSON as:
>
> {"bean":{"name":"Jack"}} or {"name":"Jack"}
YES
>
> would you like to get st. like:
>
> {"root":{"bean":{"name":"Jack"}}}