fix(接口自动化):修复JSON格式化问题 #1004865
This commit is contained in:
parent
2d78f62123
commit
1018edea1f
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue