get(String) uses get(String,Class)

This commit is contained in:
Fabio Sinibaldi 2022-02-17 11:06:36 +01:00
parent 2033f7a151
commit c05f8e8d76
2 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class JSONPathWrapper {
}
public List<Object> getByPath(String path){
return valueCTX.read(path);
return getByPath(path,Object.class);
}
public List<String> getMatchingPaths(String path){return pathsCTX.read(path); }

View File

@ -42,6 +42,8 @@ public class JSONPathTests {
@Test
public void readElements() throws IOException {
JSONPathWrapper documentNavigator=getNavigator("profiledConcessioneExample.json");
}