This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB issue" Watch "JAXB issue" New topic
Author

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
like


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: http://aspose.com/file-tools
 
subject: JAXB issue
 
Similar Threads
converting xsd to html
How to add xml schema within xml using jaxb
MS Exchange web service: If the 'nillable' attribute is false in the schema, the 'xsi:nil' attribute
JAXB Problem
XML schema fails to load