【优化】导出的json格式对于 '\','<' 之类的字段不escape

main
walon 2022-03-28 18:54:37 +08:00
parent 7bc489e15e
commit df932046e4
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ namespace Luban.Job.Cfg.Utils
{
Indented = !table.Assembly.OutputCompactJson,
SkipValidation = false,
Encoder = System.Text.Encodings.Web.JavaScriptEncoder.Create(System.Text.Unicode.UnicodeRanges.All),
Encoder = System.Text.Encodings.Web.JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
});
if (dataType == "data_json")
{