|
|
@ -195,15 +195,16 @@ public class JsonPath { |
|
|
|
} catch (RuntimeException e){ |
|
|
|
} catch (RuntimeException e){ |
|
|
|
if(!optSuppressExceptions){ |
|
|
|
if(!optSuppressExceptions){ |
|
|
|
throw e; |
|
|
|
throw e; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(optAsPathList){ |
|
|
|
|
|
|
|
return (T)configuration.jsonProvider().createArray(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if(optAlwaysReturnList){ |
|
|
|
|
|
|
|
return (T)configuration.jsonProvider().createArray(); |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return (T)(path.isDefinite() ? null : configuration.jsonProvider().createArray()); |
|
|
|
if(optAsPathList){ |
|
|
|
|
|
|
|
return (T)configuration.jsonProvider().createArray(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if(optAlwaysReturnList){ |
|
|
|
|
|
|
|
return (T)configuration.jsonProvider().createArray(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return (T)(path.isDefinite() ? null : configuration.jsonProvider().createArray()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|