Browse Source

Merge 7321f6b289 into 45333e0a31

pull/683/merge
Ajay Mandvekar 2 months ago committed by GitHub
parent
commit
02b5405b82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      json-path/src/main/java/com/jayway/jsonpath/internal/filter/ValueNodes.java

2
json-path/src/main/java/com/jayway/jsonpath/internal/filter/ValueNodes.java

@ -676,7 +676,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) {

Loading…
Cancel
Save