title: org.json.JSONException: Unterminated object at character 18 of [] in my mobile
body: <p>i checked almost all solution on this error on stackoverflow but i can't find right solution
  i am fetching data from third party service it returns JSON Array <br>
  it gives org.json.JSONException: Unterminated object at character 18 of [JsonArray] in my mobile phone but it gives desired result in emulator my mobile have android 8.1
  and my emulator have android 12</p>
  <p>my code</p>
  <pre><code>val queue = Volley.newRequestQueue(context)
  val jsonArrayobj=JsonArrayRequest(Request.Method.GET,finalurl,null,{ response-&gt;
  
     //process on data
  
  },{
         Log.d(&quot;vollyError&quot;,it.message.toString())
  //     Toast.makeText(context, &quot;Erroroccured&quot;,Toast.LENGTH_LONG).show()
     })
  queue.add(jsonArrayobj)
  </code></pre>