This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Let one pass an external ObjectMapper to JacksonRuntime instance
Motivation: JacksonRuntime currently creates it own internal ObjectMapper instance. This ObjectMapper is used for parsing JSON String an emitting JsonLiteral instances. Jackson provides lots of features, see https://static.javadoc.io/com.fasterxml.jackson.core/jackson-core/2.9.9/com/fasterxml/jackson/core/JsonParser.Feature.html. Users might want to provide their own ObjectMapper instance configured for their needs (allowing numeric leading zeros, custom date formats, etc) or simply because they already have an instance and there's no reason the create a second one. Modification: Add a new constructor. Result: Users can provide their own ObjectMapper instance.
- Loading branch information