Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB issue

 
Amitosh Mishra
Ranch Hand
Posts: 49
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic