Marcial AtiƩnzar Navarro created XSTR-696:
---------------------------------------------

             Summary: 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
             Fix For: 1.x Maintenance
         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>

Reply via email to