title: Expected a string but was BEGIN_OBJECT error
body: <p>I have the following JSON, code and model:</p>
  
  <h3>This is the wire format of the JSON</h3>
  
  <pre><code>{
    "success": "false",
    "http": "ok",
    "status_code": "200",
    "invoice_detail": {
      "notifications": [
        {
          "quantity": "414",
          "price": "5412",
          "total_price": "15748",
          "name": "Axel_Item_5412"
        },
        {
          "quantity": "414",
          "price": "5412",
          "total_price": "15748",
          "name": "Axel_Item_5412"
        },
        {
          "quantity": "414",
          "price": "5412",
          "total_price": "15748",
          "name": "Axel_Item_5412"
        },
        {
          "quantity": "414",
          "price": "5412",
          "total_price": "15748",
          "name": "Axel_Item_5412"
        },
        {
          "quantity": "414",
          "price": "5412",
          "total_price": "15748",
          "name": "Axel_Item_5412"
        },
        {
          "quantity": "414",
          "price": "5412",
          "total_price": "15748",
          "name": "Axel_Item_5412"
        },
        {
          "quantity": "414",
          "price": "5412",
          "total_price": "15748",
          "name": "Axel_Item_5412"
        },
        {
          "quantity": "414",
          "price": "5412",
          "total_price": "15748",
          "name": "Axel_Item_5412"
        }
      ]
    },
    "sgst": "125478122"
  }
  </code></pre>
  
  <h3>This is the retrofitCall method</h3>
  
  <pre><code>private void retrofitCall() {
      String url= "http://www.amock.io/api/imran.cyber/get-fake";
      Call&lt;ListModel&gt; call= apiInterface.getList("", url);
      call.enqueue(new Callback&lt;ListModel&gt;() {
          @Override
          public void onResponse(Call&lt;ListModel&gt; call, Response&lt;ListModel&gt; response) {
              if (response.isSuccessful()){
                  String s= response.body().getInvoice_detail();
                  Log.e(TAG, "onResponse: "+s);
              }
          }
  
          @Override
          public void onFailure(Call&lt;ListModel&gt; call, Throwable t) {
              Log.e(TAG, "onFailure: "+t.getMessage());
          }
      });
  }
  </code></pre>
  
  <h3>This is the model class</h3>
  
  <pre><code>public class ListModel {
  
  @SerializedName("invoice_detail")
  public String invoice_detail;
  
  public ListModel(String invoice_detail) {
      this.invoice_detail = invoice_detail;
  }
  
  public String getInvoice_detail() {
      return invoice_detail;
  }
  
  public void setInvoice_detail(String invoice_detail) {
      this.invoice_detail = invoice_detail;
  }
  </code></pre>
  
  <p>And I get this error:</p>
  
  <blockquote>
    <p>11-08 10:09:18.489 3578-3578/? E/MainActivity:: onFailure: java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 5 column 22 path $.invoice_detail</p>
  </blockquote>
  
  <p>I'm unsure what is wrong: my JSON, my code or my model? </p>