From 7321f6b289c370ec7dd3f480b694f1b48c96bb89 Mon Sep 17 00:00:00 2001 From: Ajay Mandvekar Date: Thu, 25 Mar 2021 13:34:29 -0700 Subject: [PATCH] build configuration with provided mapper --- .../java/com/jayway/jsonpath/internal/filter/ValueNodes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-path/src/main/java/com/jayway/jsonpath/internal/filter/ValueNodes.java b/json-path/src/main/java/com/jayway/jsonpath/internal/filter/ValueNodes.java index c4030bc7..e8cb145a 100644 --- a/json-path/src/main/java/com/jayway/jsonpath/internal/filter/ValueNodes.java +++ b/json-path/src/main/java/com/jayway/jsonpath/internal/filter/ValueNodes.java @@ -624,7 +624,7 @@ public interface ValueNodes { public ValueNode evaluate(Predicate.PredicateContext ctx) { if (isExistsCheck()) { try { - Configuration c = Configuration.builder().jsonProvider(ctx.configuration().jsonProvider()).options(Option.REQUIRE_PROPERTIES).build(); + Configuration c = Configuration.builder().jsonProvider(ctx.configuration().jsonProvider()).mappingProvider(ctx.configuration().mappingProvider()).options(Option.REQUIRE_PROPERTIES).build(); Object result = path.evaluate(ctx.item(), ctx.root(), c).getValue(false); return result == JsonProvider.UNDEFINED ? FALSE : TRUE; } catch (PathNotFoundException e) {