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

JsonMapper etter anbefaling fra Jackson-sjefskoder #1398

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jolarsen
Copy link
Collaborator

@jolarsen jolarsen commented Dec 3, 2024

Bruker JsonMapper og builder som anbefalt av cowtowncoder i blogg på medium.
Etter ytelsestest: best med readerFor isf direkte readvalue, mens direkte writeValueAsString er raskere enn writer().writeValue...
Legger til en kopi-metoder for tilfelle der ContextResolver (JacksonJsonConfig) trenger endre mapper (registrere moduler, (de)serializers eller subtypes)

OBS: toJson lager kompakt Json uten space og newline. FP-sak er vant til output fra toPrettyJson.
Må velge med omhu (pretty for lesbar lagring, vanlig for meldinger).

@jolarsen jolarsen force-pushed the feature/bruk-jsonmapper-anbefaling-jackson3 branch from ad44d1e to e59eb75 Compare December 7, 2024 23:13
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

Successfully merging this pull request may close these issues.

4 participants