Instantiating JsonParser is deprecate, do not use it.
Change-Id: I5486632f3ac00c89941df93096817fca2f820b22
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
final String output = webTarget.request(MediaType.APPLICATION_JSON)
.post(Entity.entity(input, MediaType.APPLICATION_JSON), String.class);
- final JsonElement element = new JsonParser().parse(output);
+ final JsonElement element = JsonParser.parseString(output);
if (!element.isJsonObject()) {
throw new IllegalStateException("Authentication error: returned output is not a JSON object");
}