title: expected BEGIN_OBJECT but was BEGIN_ARRAY in Retrofit2
body: <p>I am trying to post this json object with retrofit</p>
  <pre><code>{
    &quot;ingredients&quot;: [
      {
        &quot;quantity&quot;: 1,
        &quot;measureURI&quot;: measureUri,
        &quot;foodId&quot;: foodId
      }
    ]
  }
  </code></pre>
  <p>I succeeded using python:</p>
  <pre><code>import requests
  
  APP_ID = &quot;app_id_&quot;
  API_KEY = &quot;api_key&quot;
  BASE = &quot;https://api.edamam.com/api/food-database/v2/nutrients?&quot;
  
  url = f&quot;https://api.edamam.com/api/food-database/v2/nutrients?app_id={APP_ID}&amp;app_key={API_KEY}&quot;
  data = {
          &quot;ingredients&quot;: [
              {
                  &quot;quantity&quot;: 1,
                  &quot;measureURI&quot;:  &quot;http://www.edamam.com/ontologies/edamam.owl#Measure_unit&quot;,
                  &quot;foodId&quot;:  &quot;food_a1gb9ubb72c7snbuxr3weagwv0dd&quot;
              }
          ]
      }
  
  res = requests.post(url, json=data)
  print(res.text) 
  </code></pre>
  <p>But I can not do same with retrofit.
  Here is my service interface</p>
  <pre><code>@POST(Constants.API_PATH_NUTRIENTS + &quot;?app_id=&quot; + Constants.APP_ID + &quot;&amp;app_key=&quot; + Constants.API_KEY)
  Call&lt;NutrientsResponseSchema&gt; getFoodNutrients(@Body NutrientsRequestSchema requestSchema);
  </code></pre>
  <p>And Request schema models</p>
  <pre><code>public class NutrientsRequestSchema {
      public List&lt;IngredientsRequestSchema&gt; ingredients;
  
      public NutrientsRequestSchema(List&lt;IngredientsRequestSchema&gt; ingredients) {
          this.ingredients = ingredients;
      }
  }
  </code></pre>
  <pre><code>public class IngredientsRequestSchema {
      public float quantity;
      public String foodId;
  
      @SerializedName(&quot;measureURI&quot;)
      public String measureUri;
  
      public IngredientsRequestSchema(float quantity,
                                      String measureUri,
                                      String foodId) {
          this.quantity = quantity;
          this.measureUri = measureUri;
          this.foodId = foodId;
      }
  }
  </code></pre>
  <p>When I run code and request from service I get</p>
  <blockquote>
  <pre><code>com.google.gson.JsonSyntaxException:
  java.lang.IllegalStateException: Expected BEGIN_OBJECT but was
  BEGIN_ARRAY at line 298 column 20 path $.ingredients 
  </code></pre>
  </blockquote>