Browse Source

Fix issue json-path#667

pull/701/head
SUSTech-11810721 4 years ago
parent
commit
a5d1b63783
  1. 2
      json-path/src/main/java/com/jayway/jsonpath/internal/function/text/Length.java

2
json-path/src/main/java/com/jayway/jsonpath/internal/function/text/Length.java

@ -57,7 +57,7 @@ public class Length implements PathFunction {
while (null != tail && null != tail.getNext()) {
tail = tail.getNext();
}
if (ctx.configuration().jsonProvider().isMap(model) && null != tail) {
if (null != tail && !tail.toString().equals("[?]")) {
tail.setNext(new WildcardPathToken());
}
}

Loading…
Cancel
Save