Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB issue

 
Amitosh Mishra
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic