title: Target JSON response
body: <p>I have a JSON response that looks like this:</p>
  
  <blockquote>
    <p>{\"venues\":[{\"id\":1,\"photo\":\"<a href="https://s3.us-east-2.amazonaws.com" rel="nofollow noreferrer">https://s3.us-east-2.amazonaws.com</a>" }, ....</p>
  </blockquote>
  
  <p>It has a key "venues" and then an array of objects. In Retrofit response:</p>
  
  <pre><code>        public void onResponse(Call&lt;List&lt;Venue&gt;&gt; call, Response&lt;List&lt;Venue&gt;&gt; response) {
              venues = response.body();
              venueAdapter.notifyDataSetChanged();
          }
  </code></pre>
  
  <p>It fails with:</p>
  
  <pre><code>java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
  </code></pre>
  
  <p>Problem is I do not know how to tell Retrofit to target the collection that the "venues" key points to. How can I do this? I don't want to have to create another class Venues just because of this JSON response.</p>