mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix: 修复解析api数据错误
This commit is contained in:
@@ -787,7 +787,7 @@ public class ApiUtils {
|
||||
for (int i = 0; i < jsonPaths.size(); i++) {
|
||||
List<String> data = new ArrayList<>();
|
||||
Object object = JsonPath.using(jsonPathConf).parse(result).read(jsonPaths.get(i));
|
||||
if (object instanceof List && jsonPaths.get(i).contains("[*]")) {
|
||||
if (object instanceof List) {
|
||||
for (Object o : (List<String>) object) {
|
||||
if (Objects.isNull(o)) {
|
||||
data.add("");
|
||||
|
||||
Reference in New Issue
Block a user