0

I noticed that JSONJAXBContext (from Jersey 1) is gone in Jersey 2. So, what is the alternative way in Jersey 2 to marshal/unmarshal JAXB objects into JSON?

Thank you very much.

lexicore
  • 42,748
  • 17
  • 132
  • 221
JBT
  • 8,498
  • 18
  • 65
  • 104

1 Answers1

0

JBT Your question is already answered in : Where did JSONConfiguration go in Jersey 2.5.x? You have to use an ObjectMapperProvider : https://github.com/jersey/jersey/blob/2.5.1/examples/json-jackson/src/main/java/org/glassfish/jersey/examples/jackson/MyObjectMapperProvider.java

Community
  • 1
  • 1
cLyric
  • 259
  • 2
  • 6