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:
@@ -385,8 +385,7 @@ public class SurePetcareAPIHelper {
|
||||
*/
|
||||
private JsonElement getDataFromApi(String url) throws SurePetcareApiException {
|
||||
String apiResult = getResultFromApi(url);
|
||||
JsonParser parser = new JsonParser();
|
||||
JsonObject object = (JsonObject) parser.parse(apiResult);
|
||||
JsonObject object = (JsonObject) JsonParser.parseString(apiResult);
|
||||
return object.get("data");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user