[
https://jira.codehaus.org/browse/XSTR-696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=294307#comment-294307
]
Marcial AtiƩnzar Navarro commented on XSTR-696:
-----------------------------------------------
Hi Joerg, I've put on Jira, because I think it is an anormal behavior of json
serializer, you can see it:
- Actual ouput of generic list:
bean: node1, node 2
- Desired and correct output:
bean: [node1,node2]
I think it's a bug, and for that I create this jira issue
> Using generics with json serializer
> -----------------------------------
>
> Key: XSTR-696
> URL: https://jira.codehaus.org/browse/XSTR-696
> Project: XStream
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.4.2
> Reporter: Marcial AtiƩnzar Navarro
> Assignee: Joerg Schaible
> Attachments: ResultBean.java
>
>
> Hi,
> I don't know if I'm doing something wrong or not.
> I've a pojo as a generic container: ResultBean<E extends Serializable> ,
> where it has a property: E bean;
> When E is an ArrayList, the output is this:
> {code}
> :{"@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"}}}
> {code}
> It has this structure: bean: node1, node 2. The desired output it will web:
> bean:[node1,node2]
> I'm doing something wrong?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
<a
href="http://xircles.codehaus.org/manage_email">http://xircles.codehaus.org/manage_email</a>
</p>