eclipse-ee4j / eclipse-ee4j/jersey
Using customized ObjectWriter with Jersey
Open
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
I'm using Jersey with Jackson for json serialization/deserialization. I want to customize Jackson to use `@JsonFilter`. To use customized Jackson `ObjectMapper`, I have to create a `ContextResolver` but the problem is that to apply `@JsonFilter` to Jackson serializer, I have to write the following:
> new ObjectMapper().writer(filterProvider)
which is an `ObjectWriter` instead of `ObjectMapper`. Is there any way to inject the `ObjectWriter` into Jersey?
Contributor guide
Assessment
This issue has not been assessed yet.