)); ObjectMapper objectMapper = new ObjectMapper(); Response response = null; try { response = objectMapper.readValue(weatherResponse.text(), Response.class); } catch (IOException e) { e.printStackTrace(); } return response; } 