Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 25c81e8

Browse files
authored
Merge pull request #40 from gatling/master
Let one pass an external ObjectMapper to JacksonRuntime instance
2 parents d73cfaa + 4e94a87 commit 25c81e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jmespath-jackson/src/main/java/io/burt/jmespath/jackson/JacksonRuntime.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ public JacksonRuntime() {
2626
}
2727

2828
public JacksonRuntime(RuntimeConfiguration configuration) {
29+
this(configuration, new ObjectMapper());
30+
}
31+
32+
public JacksonRuntime(RuntimeConfiguration configuration, ObjectMapper jsonParser) {
2933
super(configuration);
30-
this.jsonParser = new ObjectMapper();
34+
this.jsonParser = jsonParser;
3135
}
3236

3337
@Override

0 commit comments

Comments
 (0)