File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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