mirror of https://github.com/alibaba/druid.git
fix json stringify large object error
fix json stringify large object error
This commit is contained in:
parent
32f2e26fb6
commit
5ab3bfa634
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue