parent
dc9e2d9895
commit
0ed7e50f38
|
@ -100,9 +100,11 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin {
|
|||
String text = codeEdit.getText();
|
||||
Object obj = JSON.parse(text);
|
||||
if (obj instanceof JSONObject) {
|
||||
logger.info("解析JSON字符串 → text:{}\nJSON字符串解析为JSONObject", text);
|
||||
JSONObject jsonObject = JSON.parseObject(text);
|
||||
parseJson(jsonObject, 1, null);
|
||||
} else if (obj instanceof JSONArray) {
|
||||
logger.info("解析JSON字符串 → text:{}\nJSON字符串解析为JSONArray", text);
|
||||
JSONArray jsonArray = JSON.parseArray(text);
|
||||
parseJson(jsonArray, 1, null);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue