Hi everyone,
I initially posted a similar question on the Jersey GitHub discussion channel (1), but I haven't received a response, so I hope it's okay to ask here. I realize my question is more directly related to Jersey, but I thought some of you might have valuable insights, given how often open-source projects intersect with each other.
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 in `jersey-media-json-jackson` and the regular `jackson-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:
- are updates to `jackson-jaxrs-providers` typically backported to `jersey-media-json-jackson`?
- could you provide some context around why the classes were shaded in `jersey-media-json-jackson`? Maybe there is something that we are overlooking.
I apologize if this is outside the usual scope of this group, but if anyone has any background and is willing to share it is much appreciate it!
Thank you for your time,
Francesco
References:
(1) https://github.com/eclipse-ee4j/jersey/discussions/5795
--
You received this message because you are subscribed to the Google Groups "jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jackson-user/8ef015c8-e4e1-460c-bb9a-343437bd4698n%40googlegroups.com.