fix(数据集): API 数据集报错

This commit is contained in:
taojinlong 2022-08-31 13:34:49 +08:00
parent 074d925432
commit cf8f0cb5e4

View File

@ -213,8 +213,8 @@ public class ApiProvider extends Provider {
if (StringUtils.isNotEmpty(value) && value.startsWith("[")) {
JSONObject o = new JSONObject();
JSONArray jsonArray = jsonObject.getJSONArray(s);
try {
JSONArray jsonArray = jsonObject.getJSONArray(s);
List<JSONObject> childrenField = new ArrayList<>();
for (Object object: jsonArray) {
JSONObject.parseObject(object.toString());