XML Support and Class Shading in jersey-media-json-jackson
#5795
WannabeSoftwareEngineer
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
in our project, we’re currently using
org.glassfish.jersey.media:jersey-media-json-jackson
to provide support for JSON serialization, which works great.Now we’re looking to add support for XML-based endpoints, but we’ve run into a bit of a roadblock and could use some guidance.
As far as we know, there isn’t a direct XML equivalent of
jersey-media-json-jackson
.Since
jackson-jaxrs-providers
offers XML support, we thought we would write a JAX-RS feature using its XML provider, but this has led to having to deal with core classes being duplicated. The core classes are coming both from the shaded version injersey-media-json-jackson
and the regularjackson-jaxrs-providers
xml module, like, for example, JacksonFeatures.java.To avoid the complexity of managing duplicated classes, we’re considering rewriting our JSON feature to use the JSON provider from
jackson-jaxrs-providers
directly, simplifying the setup.My questions would be:
jackson-jaxrs-providers
typically backported tojersey-media-json-jackson
?jersey-media-json-jackson
? Maybe there is something that we are overlooking.Appreciate any insights.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions