title: Use JsonReader.setLenient(true) to accept malformed JSON in kolin using retrofit
body: <p>I am using retrofit2 for API calls. When it called to my  API it shows below error;</p>
  <pre><code>Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
  </code></pre>
  <p>#Step1: Here is my JONSON</p>
  <pre><code>    [
    {
      &quot;branchCode&quot;: &quot;053&quot;,
      &quot;logitude&quot;: &quot; &quot;,
      &quot;phone&quot;: &quot; +8809613225301&quot;,
      &quot;latitude&quot;: &quot; &quot;,
      &quot;sl&quot;: &quot;1&quot;,
      &quot;branchName&quot;: &quot;A K KHAN MOOR BRANCH&quot;,
      &quot;branchAddress&quot;: &quot;The Downing(1st Floor), H-825,, Zakir Hossain Road, A K Khan,&quot;,
      &quot;opendate&quot;: &quot; &quot;,
      &quot;fax&quot;: &quot; n/a&quot;
    },
    {
      &quot;branchCode&quot;: &quot;058&quot;,
      &quot;logitude&quot;: &quot; &quot;,
      &quot;phone&quot;: &quot; &quot;,
      &quot;latitude&quot;: &quot; &quot;,
      &quot;sl&quot;: &quot;2&quot;,
      &quot;branchName&quot;: &quot;AGANAGAR BRANCH&quot;,
      &quot;branchAddress&quot;: &quot;Aganagar Branch, Shawon Plaza (1st Floor)&quot;,
      &quot;opendate&quot;: &quot; &quot;,
      &quot;fax&quot;: &quot; &quot;
    }
  ]
  </code></pre>
  <p>#2Step: here is my data class</p>
  <pre><code> data class LocationdataModel(
  
  @SerializedName(&quot;sl&quot;)
  var sl: String = &quot;&quot;,
  
  @SerializedName(&quot;atmCode&quot;)
  var atmCode: String = &quot;&quot;,
  
  @SerializedName(&quot;atmLocation&quot;)
  var atmLocation: String = &quot;&quot;,
  
  @SerializedName(&quot;atmLogitude&quot;)
  var atmLogitude: String = &quot;&quot;,
  
  @SerializedName(&quot;atmLatitued&quot;)
  var atmLatitued: String = &quot;&quot;,
  
  @SerializedName(&quot;branchCode&quot;)
  var branchCode: String = &quot;&quot;,
  
  @SerializedName(&quot;branchName&quot;)
  var branchName: String = &quot;&quot;,
  
  @SerializedName(&quot;branchAddress&quot;)
  var branchAddress: String = &quot;&quot;,
  
  @SerializedName(&quot;phone&quot;)
  var phone: String = &quot;&quot;,
  
  @SerializedName(&quot;fax&quot;)
  var fax: String = &quot;&quot;,
  
  @SerializedName(&quot;logitude&quot;)
  var logitude: String = &quot;&quot;,
  
  @SerializedName(&quot;latitude&quot;)
  var latitude: String = &quot;&quot;,
  
  @SerializedName(&quot;opendate&quot;)
  var opendate: String = &quot;&quot;,
  
  @SerializedName(&quot;atmName&quot;)
  var atmName: String = &quot;&quot;
  )
  </code></pre>
  <p>#Step3: here is my API</p>
  <pre><code> @GET(&quot;api/location_api&quot;)
   fun getBranchLocation(
      @Query(&quot;requestCode&quot;) requestCode: String?
  ): Single&lt;ArrayList&lt;LocationdataModel&gt;&gt;
  </code></pre>
  <p>#Step4: My API Server from where I called my api</p>
  <pre><code>     var okHttpClient: OkHttpClient? = OkHttpClient.Builder()
          .connectTimeout(50, TimeUnit.SECONDS)
          .readTimeout(50, TimeUnit.SECONDS)
          .writeTimeout(50, TimeUnit.SECONDS)
          .callTimeout(50, TimeUnit.SECONDS)
          .addInterceptor { chain -&gt;
              val original = chain.request()
              val requestBuilder = original.newBuilder()
                  .header(&quot;Authorization&quot;, &quot;myauth&quot;)
              val request = requestBuilder.build()
              chain.proceed(request)
          }
          .build()
  
  
  
      private val api = Retrofit.Builder()
          .baseUrl(baseurl)
          .addConverterFactory(GsonConverterFactory.create())
          .addCallAdapterFactory(RxJava2CallAdapterFactory.create())
          .client(okHttpClient)
          .build()
          .create(Api::class.java)
  
  fun getBranchLocation(model: LocationModel): Single&lt;ArrayList&lt;LocationdataModel&gt;&gt; {
      return api.getBranchLocation(
          model.requestCode
      )
  }
  </code></pre>
  <p>#Step5: here is my ViewModel</p>
  <pre><code>    fun getBranchLocation(model: LocationModel){
      disposable.add(apiService.getBranchLocation(model)
          .subscribeOn(Schedulers.newThread())
          .observeOn(AndroidSchedulers.mainThread())
          .subscribeWith(object : DisposableSingleObserver&lt;List&lt;LocationdataModel&gt;&gt;() {
              override fun onSuccess(model: List&lt;LocationdataModel&gt;) {
                  model.let {
                      getBranchLocationonList_response.value = model
                  }
              }
              override fun onError(e: Throwable) {
                  Log.e(&quot;error--&gt;&quot;, e.message.toString())
                  e.printStackTrace()
                
              }
  
          })
      
  </code></pre>
  <p>Whate is the wrong with my code? Please help me</p>