fix(接口自动化):修复JSON格式化问题 #1004865
This commit is contained in:
parent
ae105041d1
commit
5ef585b026
|
@ -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