fix(接口自动化):修复JSON格式化问题 #1004865

This commit is contained in:
fit2-zhao 2021-07-06 15:50:50 +08:00 committed by fit2-zhao
parent ae105041d1
commit 5ef585b026
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ public class JSONSchemaGenerator {
JSONObject root = new JSONObject();
generator(jsonSchema, root);
// 格式化返回
Gson gson = new GsonBuilder().serializeNulls().setPrettyPrinting().create();
Gson gson = new GsonBuilder().serializeNulls().setPrettyPrinting().disableHtmlEscaping().create();
if (root.get("MS-OBJECT") != null) {
return gson.toJson(root.get("MS-OBJECT"));
}