Closed sunmingtao closed 3 years ago
The solution is
RestTemplate restTemplate = new RestTemplate();
restTemplate.setRequestFactory(new HttpComponentsClientHttpRequestFactory());
The HttpComponentsClientHttpRequestFactory
supports gzip encoding
https://stackoverflow.com/questions/42621547/jackson-error-illegal-character-only-regular-white-space-allowed-when-parsi/56533517#56533517
Use Spring RestTemplate to parse json from https://projects.fivethirtyeight.com/2018-nba-predictions/data.json