Hi Marcial, Atienzar Navarro, Marcial wrote:
> Hi, > > I've post this issue: https://jira.codehaus.org/browse/XSTR-696 > > But I don't know if this is an issue or something that I'm doing > wrong. I think that it is an issue, and for that I've create the jira > issue. > > I've a generic pojo, ResulBean<E extends Serializable> that has a > property, E bean. When E is an ArrayList<GnNode> the output is > something like this: > > > > {"@id": "1","bean": > {"@class": "list","@id": "2", > "org.kyrian.entity.gnomo.GnNode": {"@id": "3","nodeId": 1,"nodeTitle": > "nodo 1"}, "org.kyrian.entity.gnomo.GnNode": {"@id": "4","nodeId": > 2,"nodeTitle": "nodo 2"} } > } > > > > But I think the output must be something like this: > > > bean:[ > > {"@id": "3","nodeId": 1,"nodeTitle": "nodo 1"}, > > {"@id": "4","nodeId": 2,"nodeTitle": "nodo 2"} > ] > > > I'm doing something wrong? How do you initialize XStream and if you're using the Jettison-based driver, which version of Jettison? Why do you use id references? JSON cannot handle this and the tutorial explicitly states that you should not use references at all. Do you intend to deserialize these objects again for Java? Cheers, Jörg --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
