File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes JAXB issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB issue" Watch "JAXB issue" New topic

JAXB issue

Amitosh Mishra
Ranch Hand

Joined: Feb 11, 2010
Posts: 49
Hi All,

i have schema which has below element

this generate class structure

i am trying to generate json from the object
but it is generating like

this is becuse properties are mapped to jaxbelement .
i want json response to be generated without being mapped to jaxbelemnt

please help..
Amitosh Mishra
Ranch Hand

Joined: Feb 11, 2010
Posts: 49
i resolved this problem at jackson level by writing custome serializer for JAXBELEMENT class

and adding this to jackson mapper like
I agree. Here's the link:
subject: JAXB issue
Similar Threads
How to add xml schema within xml using jaxb
converting xsd to html
XML schema fails to load
MS Exchange web service: If the 'nillable' attribute is false in the schema, the 'xsi:nil' attribute
JAXB Problem