Browse Source

Fix JSON detection

pull/330/head
jochenberger 8 years ago committed by GitHub
parent
commit
2774037a5b
  1. 2
      json-path/src/main/java/com/jayway/jsonpath/internal/filter/ValueNode.java

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

@ -154,7 +154,7 @@ public abstract class ValueNode {
if ((c0 == '[' && c1 == ']') || (c0 == '{' && c1 == '}')){
try {
Configuration.defaultConfiguration().jsonProvider().parse(str);
return false;
return true;
} catch(Exception e){
return false;
}

Loading…
Cancel
Save