forked from github/dataease
fix(数据集): API 数据集报错
This commit is contained in:
parent
074d925432
commit
cf8f0cb5e4
@ -213,8 +213,8 @@ public class ApiProvider extends Provider {
|
|||||||
if (StringUtils.isNotEmpty(value) && value.startsWith("[")) {
|
if (StringUtils.isNotEmpty(value) && value.startsWith("[")) {
|
||||||
|
|
||||||
JSONObject o = new JSONObject();
|
JSONObject o = new JSONObject();
|
||||||
JSONArray jsonArray = jsonObject.getJSONArray(s);
|
|
||||||
try {
|
try {
|
||||||
|
JSONArray jsonArray = jsonObject.getJSONArray(s);
|
||||||
List<JSONObject> childrenField = new ArrayList<>();
|
List<JSONObject> childrenField = new ArrayList<>();
|
||||||
for (Object object: jsonArray) {
|
for (Object object: jsonArray) {
|
||||||
JSONObject.parseObject(object.toString());
|
JSONObject.parseObject(object.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user