title: Retrofit parsing issue with GSON
body: <p>I know this question has been asked many time.But I am not able to understand the soultion.</p>
  
  <p>I am getting below error.</p>
  
  <pre><code>java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
  </code></pre>
  
  <p>Below is my code.</p>
  
  <pre><code>  PriceInterface priceInterface = ApiClient.getClient().create(PriceInterface.class);
  
      Map&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
      params.put("date", "today");
      params.put("circle", "Chandigarh");
  
      Call&lt;PriceListBean&gt; call = priceInterface.getMyThing(params);
  
      call.enqueue(new Callback&lt;PriceListBean&gt;() {
          @Override
          public void onResponse(Call&lt;PriceListBean&gt; call, Response&lt;PriceListBean&gt; response) {
              Log.e("response is","++++"+response.body().toString());
          }
  
          @Override
          public void onFailure(Call&lt;PriceListBean&gt; call, Throwable t) {
  
              Log.e("failure message is",""+t.getLocalizedMessage());
             // t.getLocalizedMessage();
  
          }
      });
  </code></pre>
  
  <p>Below is my json which I am getting from server.</p>
  
  <pre><code> {
      "price": [{
          "id": 678,
          "date_time": "2017-07-25",
          "type": "Diesel",
          "place": "Chandigarh",
          "price": "55.75"
      }, {
          "id": 639,
          "date_time": "2017-07-25",
          "type": "Petrol",
          "place": "Chandigarh",
          "price": "64.74"
      }],
      "errorCode": 0,
      "errorDesc": "Success"
  }
  </code></pre>
  
  <p>I have created Pojo for this.</p>
  
  <pre><code>public class PriceListBean {
  
  @SerializedName("price")
  @Expose
  private List&lt;Price&gt; price = null;
  @SerializedName("errorCode")
  @Expose
  private Integer errorCode;
  @SerializedName("errorDesc")
  @Expose
  private String errorDesc;
  
  public List&lt;Price&gt; getPrice() {
      return price;
  }
  
  public void setPrice(List&lt;Price&gt; price) {
      this.price = price;
  }
  
  public Integer getErrorCode() {
      return errorCode;
  }
  
  public void setErrorCode(Integer errorCode) {
      this.errorCode = errorCode;
  }
  
  public String getErrorDesc() {
      return errorDesc;
  }
  
  public void setErrorDesc(String errorDesc) {
      this.errorDesc = errorDesc;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>This can be easily done with Volley or Gson But as I am trying to user Retrofit so I am stuck in this. I am not sure If I am getting right format json or not</p>