mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add config
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user