Код: Выделить всё
try (Response okHttpResponse = client.httpClient.newCall(request).execute()) {
if (!okHttpResponse.isSuccessful()) {
logger.severe("Error in calling Rest API : " + okHttpResponse);
throw new IOException("Unexpected code " + okHttpResponse);
}
// Handle the response
try (ResponseBody responseBody = okHttpResponse.body()) {
if (responseBody != null) {
try (InputStream inputStream = responseBody.byteStream()) {
model = JSON.parseObject(inputStream, Model.class);
}
} else {
logger.severe("Empty response body ");
}
}
logger.exiting(model);
return model;
}
Код: Выделить всё
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Код: Выделить всё
not support input PD94bWwgdmVyc2lvbj0iMWRSdzVk8+, offset 5476, character }, line 1, column 5476, fastjson-version 2.0.54
Подробнее здесь: https://stackoverflow.com/questions/793 ... model-clas
Мобильная версия