title: Receiving error "Expected BEGIN_ARRAY but was BEGIN_OBJECT"
body: <p>I have this problem and cant seem to find a solution. I have Googled around but to no avail.</p>
  
  <p>The API is returning an array of objects but gson has found an object.</p>
  
  <p><strong>My Model</strong></p>
  
  <pre><code>public class Message {
  
  private int id;
  private String title;
  private String details;  }
  </code></pre>
  
  <p><strong>MessageClient</strong></p>
  
  <pre><code>public interface MessageClient {
  
  @GET("/api/test")
  Call&lt;List&lt;Message&gt;&gt; getMessages();}
  </code></pre>
  
  <p><strong>Implementation</strong></p>
  
  <pre><code>Retrofit.Builder builder = new Retrofit.Builder()
              .baseUrl(Api.BASE_URL)
              .client(okHttpClient)
              .addConverterFactory(GsonConverterFactory.create());
      Retrofit retrofit = builder.build();
  
  MessageClient client =  retrofit.create(MessageClient.class);
  Call&lt;List&lt;Message&gt;&gt; call = client.getMessages();
  
  call.enqueue(new Callback&lt;List&lt;Message&gt;&gt;() {
      @Override
      public void onResponse(Call&lt;List&lt;Message&gt;&gt; call, Response&lt;List&lt;Message&gt;&gt; response) {
          List&lt;Message&gt; messageList = response.body();
          Log.d(TAG, "LIST: "+messageList);
      }
  
      @Override
      public void onFailure(Call&lt;List&lt;Message&gt;&gt; call, Throwable t) {
          Log.d(TAG, "API ERROR: "+t.getMessage());
      }
  });
  </code></pre>
  
  <p><strong>Sample data from API</strong></p>
  
  <pre><code>[
  {
      "id": 1,
      "title": "Title 1",
      "details": "Message1.",
      "client_id": 1,
  
  },
  {
      "id": 2,
      "title": "Title 2",
      "details": "Message 2.",
      "client_id": 1,
  }]
  </code></pre>
  
  <p>Where am I missing it? Please note the API sample data.</p>