Skip to content
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

Docs: confusion between JsonMapper and ObjectMapper #11248

Open
mikehearn opened this issue Oct 9, 2024 · 1 comment
Open

Docs: confusion between JsonMapper and ObjectMapper #11248

mikehearn opened this issue Oct 9, 2024 · 1 comment

Comments

@mikehearn
Copy link
Contributor

Issue description

The Micronaut Core docs tell you to use JsonMapper instead of Jackson's ObjectMapper as the right interface for serializing objects, but:

  1. Micronaut Serialization docs make no mention of this. It says to use ObjectMapper
  2. Clicking the first JsonMapper link takes you to a Javadoc for Jackson's ObjectMapper class.
  3. The second JsonMapper link works.

Should be a simple docs fix but ... which interface should I use? The Core and Serialization modules don't seem to agree.

@graemerocher
Copy link
Contributor

using JsonMapper lets you switch between Jackson Databind and Micronaut Serialization all other variations do not. So the answer depends if you want to couple yourself to one of the implementations or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants