Skip to content

Introduce JacksonObjectReader and JacksonObjectWriter function interfaces to customize JSON (de)serialization #2332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented May 24, 2022

We now encapsulate serialization and deserialization operations as JacksonObjectWriter and JacksonObjectReader functions to allow customization of Jackson serialization.

Closes #2322

mp911de added 2 commits May 24, 2022 14:19
…aces to customize JSON (de)serialization.

We now encapsulate serialization and deserialization operations as JacksonObjectWriter and JacksonObjectReader functions to allow customization of Jackson serialization.
@mp911de mp911de added the type: enhancement A general enhancement label May 24, 2022
@mp911de mp911de requested a review from christophstrobl May 24, 2022 12:29
christophstrobl and others added 2 commits May 31, 2022 12:57
This commit makes sure to extract and pass on the target type, otherwise it would be Object.class all the time.
Introduce single private constructor to accept all arguments.
Deprecate ObjectMapper setter. Introduce constructor accepting the ObjectMapper.
christophstrobl pushed a commit that referenced this pull request Jul 12, 2022
…aces to customize JSON (de)serialization.

We now encapsulate serialization and deserialization operations as JacksonObjectWriter and JacksonObjectReader functions to allow customization of Jackson serialization.

Closes: #2322
Original Pull Request: #2332
christophstrobl added a commit that referenced this pull request Jul 12, 2022
This commit makes sure to extract and pass on the target type, otherwise it would be Object.class all the time.

Original Pull Request: #2332
christophstrobl pushed a commit that referenced this pull request Jul 12, 2022
Deprecate ObjectMapper setter. Introduce constructor accepting the ObjectMapper.

Original Pull Request: #2332
christophstrobl added a commit that referenced this pull request Jul 12, 2022
Reduce constructor visibility and add tests with user provided ObjectMapper.

Original Pull Request: #2332
@christophstrobl christophstrobl deleted the issue/2322 branch July 14, 2022 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide read/write customization hooks for GenericJackson2JsonRedisSerializer
2 participants