Proba naprawienia

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2021-01-08 16:26:47 +01:00
parent a25843ebfd
commit bbf14b0ff9
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -60,7 +60,9 @@ public class UsosApiService {
try (Response response = service.execute(request)) { try (Response response = service.execute(request)) {
System.out.println("TRY"); System.out.println("TRY");
final String json = response.getBody(); final String json = response.getBody();
System.out.println("Przed Object");
final ObjectMapper mapper = new ObjectMapper(); final ObjectMapper mapper = new ObjectMapper();
System.out.println("Przed mapą");
Map<String, String> map = mapper.readValue(json, new TypeReference<Map<String, String>>() { Map<String, String> map = mapper.readValue(json, new TypeReference<Map<String, String>>() {
}); });
System.out.println(map.size()); System.out.println(map.size());