package lan.zold; import kong.unirest.core.HttpResponse; import kong.unirest.core.JsonNode; import kong.unirest.core.Unirest; public class Main { public static void main(String[] args) { String url = "https://jsonplaceholder.typicode.com/todos"; HttpResponse apiResponse = Unirest.get(url).asJson(); System.out.println(apiResponse.getBody().toPrettyString()); } }