On 20/11/12 07:46, jbright wrote:
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...
Please use Jackson JAXB provider for reading JSON data which contain
arrays at the moment... Jettison 1.3.3 (not released) will have to fix
it, but till then please use Jackson
Sergey
--
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.