title: How to get response in list form using Unirest?
body: <p>My project is written in the Java programming language using the Spring Boot framework.
  I use Unirest library for getting requests to some API and I want to get response in forms, which looks like <code>List&lt;SomeResponse&gt;</code>
  Below I write some example of request, which I try to make.
  Why do I need a list? Because this data structure is more convenient and used throughout the rest of the huge project.
    I tried various options for receiving a response to the request, but I could not get the <code>List &lt;SomeResponse&gt;</code> in any way. At the moment, my efforts have led me only to the fact that I get an array of the objects I need. Of course, we could try to cast the array to list, but here, as it seems to me, we lose in speed.</p>
  
  <pre><code> try {
              SomeResponse[] SomeResponses = Unirest.post(url)
                      .header("Content-Type", "application/json")
                      .header("Authorization", key)
                      .body("[\"" + address + "\"]")
                      .asObject(SomeResponse[].class)
                      .getBody();
              return Result.ok(SomeResponses);
          } catch (UnirestException e) {
              return Result.error("Error in call API " + url);
          }
  </code></pre>
  
  <p>Also, I have configured the Jackson library, which serializes the JSON format, which  that we receive  in response to a request, in POJO classes. Perhaps you could tell how to configure the mapper correctly so that it can accept and serialize this response.</p>
  
  <p>Few words about versions of libraries and frameworks. I used Gradle to build and manage dependencies.</p>
  
  <pre><code>org.springframework.boot:spring-boot-starter:2.0.0.RELEASE
  com.fasterxml.jackson.core:jackson-databind:2.10.1
  com.mashape.unirest:unirest-java:1.4.9
  </code></pre>
  
  <p>Thanks a lot for your answers! 
  P.S.
  Sorry, this question may have a bad structure, but this is the first time I am writing a problem on this platform, I promise to make my question better in the future.</p>