switch (statusCode) {
case HttpURLConnection.HTTP_OK:
case HttpURLConnection.HTTP_BAD_REQUEST:
case HttpURLConnection.HTTP_UNAUTHORIZED:
try {
<BUG>result = parseJsonResponse(webResponse.getBody());
</BUG>
} catch (final JSONException jsonException) {
throw new AuthenticationException(ADALError.SERVER_INVALID_JSON_RESPONSE, "Can't parse server response " + webResponse.getBody(), jsonException);
}

switch (statusCode) {
case HttpURLConnection.HTTP_OK:
case HttpURLConnection.HTTP_BAD_REQUEST:
case HttpURLConnection.HTTP_UNAUTHORIZED:
try {
result = parseJsonResponse(webResponse.getBody(), httpEvent);
} catch (final JSONException jsonException) {
throw new AuthenticationException(ADALError.SERVER_INVALID_JSON_RESPONSE, "Can't parse server response " + webResponse.getBody(), jsonException);
}
