After I modified Consuming a RESTful Web Service example to call get users by id from api.stackexchange.com I get JsonParseException:
com.fasterxml.jackson.cor
Replace the default requestFactory with one from Apache HttpClient (which decodes GZIP on the fly):
HttpComponentsClientHttpRequestFactory clientHttpRequestFactory = new HttpComponentsClientHttpRequestFactory(
HttpClientBuilder.create().build());
RestTemplate restTemplate = new RestTemplate(clientHttpRequestFactory);
Add Apache Http Client into pom.xml
org.apache.httpcomponents
httpclient
4.5.1