I see the primary issue (unmarshal json containing list) is fixed, perhaps
its good for very small designs ..

In case of an enterprise application 'arrayKey' is a (unwanted /
unnecessary) configuration, having lot of elements that will be of list
type.  So while designing we need to keep a constant eye on the beans.xml to
add the list elements.... the maintainability is difficult.

Also, see the difference in what we get from JacksonJsonProvider and the
JSONProvider of Jettison.

*JacksonJson*

    {
       "errors": null,
       "smeHeader":
       [
           {
               "smeHeaderDtls":
               {
                   "name": "Jackson Json",
                   "age": 25,
                   "location": "India",
                   "doB": "1985-04-28"
               }
           }
       ]
    }

*Jettison*

    {
       "SearchMeResponse":
       {
           "SmeHeader":
           [
               {
                   "SmeHeaderDtls":
                   {
                       "Name": "Jackson Json",
                       "Age": 25,
                       "Location": "India",
                       "DoB": "1985-04-28"
                   }
               }
           ]
       }
    }


However, I would try to use Jettison If at all I can get the 'null' objects
also listed in the JSON response like the one in JacksonJson..

Sergey, could you pls let me know on how to get the null objects also.. 



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

Reply via email to