Resolve itest runbundles for Gson and Commons Lang upgrades and fix JsonParser deprecations (#10345)
* Resolve itest runbundles for Gson and Commons Lang upgrades * Fix JsonParser deprecations too * Fix feature verification Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -63,7 +63,7 @@ public class JSONResponseHandler {
|
||||
public static JsonObject toJsonObject(String jsonResponse) {
|
||||
if (jsonResponse != null && !jsonResponse.trim().equals("")) {
|
||||
try {
|
||||
return (JsonObject) new JsonParser().parse(jsonResponse);
|
||||
return (JsonObject) JsonParser.parseString(jsonResponse);
|
||||
} catch (JsonParseException e) {
|
||||
LOGGER.error("An JsonParseException occurred by parsing jsonRequest: {}", jsonResponse, e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user