I'm trying to use org.apache.httpcomponents
to consume a Rest API, which will post JSON format data to API.
I get this exception:
Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal
unquoted character ((CTRL-CHAR, code 10)): has to be escaped using
backslash to be included in string.
The reason is because ctrl-char
is included in the JSON string.
Is there any way to replace this or some other solution?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…