사용
mapper.configure(
JsonReadFeature.ALLOW_UNESCAPED_CONTROL_CHARS.mappedFeature(),
true
);
javadoc 참조 :
/**
* Feature that determines whether parser will allow
* JSON Strings to contain unescaped control characters
* (ASCII characters with value less than 32, including
* tab and line feed characters) or not.
* If feature is set false, an exception is thrown if such a
* character is encountered.
*<p>
* Since JSON specification requires quoting for all control characters,
* this is a non-standard feature, and as such disabled by default.
*/
이전 옵션 JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS
은 2.10부터 더 이상 사용되지 않습니다.
github thread 도 참조하십시오 .