I've spent nearly an hour trying to find a workaround this snippet of code: JsonParser parser = new JsonParser(); JsonObject result = parser.parse(new InputStreamReader(conn.getInputStream())).getAsJsonObject();
I've looked up possible solutions, but none solve the issue of parser.parse() being deprecated. I saw that using static methods might solve this problem, but I'm uncertain as to how to go about that