diff --git a/jmespath-jackson/src/main/java/io/burt/jmespath/jackson/JacksonRuntime.java b/jmespath-jackson/src/main/java/io/burt/jmespath/jackson/JacksonRuntime.java index 87b3bb63..b6b95cbd 100644 --- a/jmespath-jackson/src/main/java/io/burt/jmespath/jackson/JacksonRuntime.java +++ b/jmespath-jackson/src/main/java/io/burt/jmespath/jackson/JacksonRuntime.java @@ -26,8 +26,12 @@ public JacksonRuntime() { } public JacksonRuntime(RuntimeConfiguration configuration) { + this(configuration, new ObjectMapper()); + } + + public JacksonRuntime(RuntimeConfiguration configuration, ObjectMapper jsonParser) { super(configuration); - this.jsonParser = new ObjectMapper(); + this.jsonParser = jsonParser; } @Override