title: volley.parsererror:org.json.JSONException: value br of type java.lang.string cannot be converted to JSONObject
body: <p><strong>volley.parsererror:org.json</strong></p>
  
  <blockquote>
    <p>value br of type java.lang.string cannot be converted to JSONObject</p>
  </blockquote>
  
  <p>Android Code</p>
  
  <pre><code>public void performSearch() {
              String url= "http://192.168.0.136/fyp/stitle.php";
              RequestQueue requestQueue = Volley.newRequestQueue(Stitle.this);
             JsonObjectRequest jsObjRequest = new JsonObjectRequest(Request.Method.POST,url,null,
                     new Response.Listener&lt;JSONObject&gt;() {
                 @Override
                 public void onResponse(JSONObject response) {
                     Log.i("Response", response.toString());
                     try {
                         //converting the string to json array object
                         JSONObject array = new JSONObject();
                         Log.i("test", " value : " + array.getString("status"));
                         if (array.getString("status").equals("true")) {
                             JSONArray jsonArray = array.getJSONArray("search");
                             Log.i("test", " value : " + array);
  
                             for (int i = 0; i &lt; jsonArray.length(); i++) {
  
                                 //getting product object from json array
                                 JSONObject product = jsonArray.getJSONObject(i);
  
                                 //adding the product to product list
                                 boolean add = productList.add(new list(
                                         product.getLong("isbn"),
                                         product.getString("title"),
                                         product.getString("authors"),
                                         product.getInt("accession"),
                                         product.getString("publisher"),
                                         product.getInt("pubyear"),
                                         product.getInt("pages"),
                                         product.getInt("rak"),
                                         product.getInt("hr"),
                                         product.getInt("vr"),
                                         product.getLong("barcode")
  
                                 ));
  
                             }
  
                         } else {
                             Log.i("test", "else error");
  
                         }
  
  
                     } catch (JSONException e) {
                         e.printStackTrace();
                         Log.i("test", e.toString());
                     }
                 }
  
             }, new Response.ErrorListener() {
                 @Override
                 public void onErrorResponse(VolleyError error) {
                     Toast.makeText(getApplicationContext(), "error:" + error.toString(), Toast.LENGTH_LONG).show();
  
                 }
             }) {
                 @Override
                 protected Map&lt;String, String&gt; getParams() throws AuthFailureError {
  
                     Map&lt;String, String&gt; params = new HashMap&lt;&gt;();
                     params.put("Title", searchtitle.getText().toString());
  
                     return params;
                 }
             };
             requestQueue = Volley.newRequestQueue(Stitle.this);
             requestQueue.add(jsObjRequest);
  
          }
  
          }
  </code></pre>
  
  <blockquote>
    <p>Php Code file to send json to android java file</p>
  </blockquote>
  
  <pre><code>    &lt;?php
  include"connection.php";
  
     if (isset($title = $_POST["Title"]){
  
  if ($conn-&gt;connect_error) {
      die("Connection failed: " . $conn-&gt;connect_error);
  } 
  
  $query =$conn-&gt;prepare('SELECT isbn, title, authors, accession, publisher, pubyear, pages, rak, hr, vr, barcode FROM books where title like "%'.$title.'%" ');
  
  $query-&gt;execute();
  
  $query-&gt;bind_result($isbn, $title, $authors, $accession, $publisher, $pubyear, $pages, $rak, $hr, $vr, $barcode);
  
  
  $books = array(); 
  $data =array();
  //traversing through all the result 
      while($query-&gt;fetch()){
      $temp = array();
      $temp['isbn'] = $isbn; 
      $temp['title'] = $title; 
      $temp['authors'] = $authors; 
      $temp['accession'] = $accession; 
      $temp['publisher'] = $publisher; 
      $temp['pubyear'] = $pubyear; 
      $temp['pages'] = $pages; 
      $temp['rak'] = $rak; 
      $temp['hr'] = $hr; 
      $temp['vr'] = $vr; 
      $temp['barcode'] = $barcode;
  
      array_push($data, $temp);
  
      }
      $books['status'] = true;
      $books['search'] = $data;
  
  
  
      //displaying the result in json format 
      echo json_encode($books);
  }}
  ?&gt;
  </code></pre>
  
  <blockquote>
    <p>When run applicaion this error toast on screen [volley.parsererror:org.json.JSONException: value br of type java.lang.string cannot be converted to JSONArray]</p>
  </blockquote>