fix json stringify large object error

fix json stringify large object error
This commit is contained in:
xuzhen1994 2024-05-10 17:55:25 +08:00 committed by LiZongbo
parent 32f2e26fb6
commit 5ab3bfa634
1 changed files with 2 additions and 1 deletions

View File

@ -370,7 +370,8 @@ public class MonitorStatService implements DruidStatServiceMBean {
JSONObject jsonObject = new JSONObject();
jsonObject.put("ResultCode", RESULT_CODE_SUCCESS);
jsonObject.put("Content", objects);
return jsonObject.toJSONString();
return jsonObject.toJSONString(JSONWriter.Feature.LargeObject, JSONWriter.Feature.ReferenceDetection,
JSONWriter.Feature.BrowserCompatible, JSONWriter.Feature.BrowserSecure);
}
/**