Browse Source

Clarified exception handling.

pull/183/merge
Kalle Stenflo 9 years ago
parent
commit
9a98961e21
  1. 5
      json-path/src/main/java/com/jayway/jsonpath/JsonPath.java

5
json-path/src/main/java/com/jayway/jsonpath/JsonPath.java

@ -195,8 +195,7 @@ public class JsonPath {
} catch (RuntimeException e){
if(!optSuppressExceptions){
throw e;
}
}
} else {
if(optAsPathList){
return (T)configuration.jsonProvider().createArray();
} else {
@ -207,6 +206,8 @@ public class JsonPath {
}
}
}
}
}
/**
* Set the value this path points to in the provided jsonObject

Loading…
Cancel
Save