fix stuff
This commit is contained in:
parent
16c670a5d5
commit
35008fdbf9
|
@ -97,7 +97,7 @@ public class MapDocumentUtil {
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static List<String> getJPathList(String path, String json, Type type) {
|
public static List<String> getJPathList(String path, String json, Type type) {
|
||||||
if (type == Type.List)
|
if (type == Type.List)
|
||||||
return JsonPath.read(json, path);
|
return JsonPath.read(json, path);
|
||||||
Object jresult;
|
Object jresult;
|
||||||
|
@ -136,7 +136,7 @@ public class MapDocumentUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static String getJPathString(final String jsonPath, final String json) {
|
public static String getJPathString(final String jsonPath, final String json) {
|
||||||
Object o = JsonPath.read(json, jsonPath);
|
Object o = JsonPath.read(json, jsonPath);
|
||||||
|
|
||||||
if (o instanceof String)
|
if (o instanceof String)
|
||||||
|
|
Loading…
Reference in New Issue