cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbright <johnbrigh...@gmail.com>
Subject Re: JSONProvider unable to unmarshal json containing list of elements
Date Tue, 20 Nov 2012 07:46:20 GMT
Sergey / Sireesh

Do we have a solution for this issue?

I do have the similar problem.

The JSONProvider is not creating collection properly.

{
    "BookResponse":{
        "BookHeader":[
            {
                "BookHeaderDtls":{ .... }
            }]
      "BookHeader":[
            {
                "BookHeaderDtls":{ .... }
            }]

Irrespective of creating the list with "BookHeader"  and populate the
BookHeaderDtls, I get only one "BookHeader":[{  and all the BookHeaderDtls
are populated inside that.

But the schema is defined to have a list of BookHeader, which in XML
response is perfect like this

<BookResponse>
    <BookHeader> .... </BookHeader>
    <BookHeader> .... </BookHeader>
    <BookHeader> .... </BookHeader>
    <BookHeader> .... </BookHeader>
    <BookHeader> .... </BookHeader>
    ......
</BookResponse>

Any help is appreciated...





--
View this message in context: http://cxf.547215.n5.nabble.com/JSONProvider-unable-to-unmarshal-json-containing-list-of-elements-tp5715651p5718799.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message