title: How to fix 'Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $' error in Android Studio
body: <p>I'm trying to POST data to API, but I get this error:</p>
  
  <blockquote>
    <p>Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $</p>
  </blockquote>
  
  <p>Anyone knows how to fix this?</p>
  
  <p>Code to POST the data In Activity</p>
  
  <pre><code>private void callList(){
      String signature = new String(Hex.encodeHex(DigestUtils.md5(
              TMK + appId + appVersion +
                      SessionManager.getSession(getApplicationContext(), getString(R.string.session_token)))
      ));
  
      Call&lt;PostGetList&gt; postGetListCall = mApiInterface.postGetList(
              appId,
              appVersion,
              SessionManager.getSession(getApplicationContext(), getString(R.string.session_token)),
              signature);
  
      postGetListCall.enqueue(new Callback&lt;PostGetList&gt;() {
          @Override
          public void onResponse(Call&lt;PostGetList&gt; call, Response&lt;PostGetList&gt; response) {
              status = response.body().getStatus();
              Utils.logcat("Recv getInfo Status " + status);
              if (status.equals(getString(R.string.rc00))) {
                  Message.message(getApplicationContext(), "Success");
              } else {
                  Message.message(getApplicationContext(), status);
              }
          }
  
          @Override
          public void onFailure(Call&lt;PostGetList&gt; call, Throwable t) {
              String responseMsg = "Fail to connect";
              Utils.logcat(responseMsg);
              Toast.makeText(getApplicationContext(), responseMsg, Toast.LENGTH_LONG).show();
              Utils.logcat(t.toString());
          }
      });
  }
  </code></pre>
  
  <p>ApiInterface.java</p>
  
  <pre><code>@FormUrlEncoded
  @POST("List.php")
  Call&lt;PostGetList&gt; postGetList(@Field("appId") String appId,
                                @Field("appVersion") String appVersion,
                                @Field("token") String token,
                                @Field("signature") String signature);
  </code></pre>
  
  <p>PostGetList.java</p>
  
  <pre><code>public class PostGetList {
      @SerializedName("status")
      String status;
      @SerializedName("data")
      String data;
  
      public String getStatus() {
          return status;
      }
      public void setStatus(String status) {
          this.status = status;
      }
  
      public String getData() {
          return data;
      }
      public void setData(String data) {
          this.data = data;
      }
  }
  </code></pre>
  
  <p>The API should return</p>
  
  <pre><code>{ “status”:”00”,
    ”data”:”List Data”}
  </code></pre>