Add paramether of config to handle if need to process parse to json or not
This commit is contained in:
parent
bdd8f2e8fc
commit
4ca4973b58
@ -247,7 +247,7 @@ public class TbHttpClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected String parseJsonStringToPlainText(String data, boolean parseToJson) {
|
protected String parseJsonStringToPlainText(String data, boolean parseToJson) {
|
||||||
if (data.startsWith("\"") && data.endsWith("\"") && data.length() >= 2) {
|
if (parseToJson && data.startsWith("\"") && data.endsWith("\"") && data.length() >= 2) {
|
||||||
final String dataBefore = data;
|
final String dataBefore = data;
|
||||||
try {
|
try {
|
||||||
data = JacksonUtil.fromString(data, String.class);
|
data = JacksonUtil.fromString(data, String.class);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user