add config

This commit is contained in:
Looly 2024-08-04 23:26:44 +08:00
parent cd048987a0
commit fd3ff4d2ee

View File

@ -38,6 +38,8 @@ public class JacksonEngine extends SimpleWrapper<ObjectMapper> implements JSONEn
super(new ObjectMapper()); super(new ObjectMapper());
// 允许出现单引号 // 允许出现单引号
raw.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true); raw.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true);
// 允许没有引号的字段名(非标准)
raw.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);
} }
@Override @Override