[ 
https://issues.apache.org/jira/browse/CXF-3475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025670#comment-13025670
 ] 

Sergey Beryozkin commented on CXF-3475:
---------------------------------------

If you strip the namespaces off and expect to read the sequence into a JAXB 
bean then you'll have to configure JSONProvider on the receiving end to append 
the namespaces, using inTransformElements,

* : {mynamespace}*

or

book : {mynamespace}book
name : {mynamespace}name

However you can't convert attributes to elements and then expect those elements 
treated as attributes on the receiving end - that may work for XML sequences 
but not for JSON sequences



> JSONProvider not able to unmarshall JSON string without namespaces
> ------------------------------------------------------------------
>
>                 Key: CXF-3475
>                 URL: https://issues.apache.org/jira/browse/CXF-3475
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS, JAXB Databinding
>    Affects Versions: 2.4
>            Reporter: Praveer Gupta
>
> If a JSON String is generated by org.apache.cxf.jaxrs.provider.JSONProvider 
> using the attributes ignoreNamespaces and attributesToElements as true, the 
> JSONProvider is not able to unmarshall the same JSON string back to the Java 
> object from which it was generated. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to