title: JSON parsing error. Volley cannot convert String to JSON array
body: <p>I have a PHP file which makes <code>JSONArray</code> from some data on my database. I had this on my localhost (using easy php) and it was working well.
  After I have transferred it to a real host I am getting an error: </p>
  
  <blockquote>
    <p>Org.json.jsonexception: Value ... script of type java.lang.String
    cannot be converted to JSONObject</p>
  </blockquote>
  
  <p><strong>My json looks like:</strong></p>
  
  <pre><code>{
      "chemData": [{
          "ID": "1",
          "TYPE": "AD_SOLVENTBASE",
          "COMPANY": "MORCHEM",
          "SOLIDC": "65.000",
          "GRAMNEED": "3.200",
          "SOLUSE": "0.450",
          "PRICE": "15000"
      }, {
          "ID": "2",
          "TYPE": "AD_SOLVENTLESS",
          "COMPANY": "MORCHEM",
          "SOLIDC": "100.000",
          "GRAMNEED": "2.300",
          "SOLUSE": "0.000",
          "PRICE": "15000"
      }, {
          "ID": "3",
          "TYPE": "HEATSEAL_PS",
          "COMPANY": "BUJAN",
          "SOLIDC": "25.000",
          "GRAMNEED": "5.000",
          "SOLUSE": "0.250",
          "PRICE": "26000"
      }, {
          "ID": "4",
          "TYPE": "COLDSEAL",
          "COMPANY": "AZARAN_BASPAR",
          "SOLIDC": "50.000",
          "GRAMNEED": "3.000",
          "SOLUSE": "0.000",
          "PRICE": "14000"
      }, {
          "ID": "5",
          "TYPE": "INK",
          "COMPANY": "BEHROFARAN",
          "SOLIDC": "37.000",
          "GRAMNEED": "2.000",
          "SOLUSE": "0.450",
          "PRICE": "12500"
      }, {
          "ID": "6",
          "TYPE": "EASYPEEL",
          "COMPANY": "BUJAN",
          "SOLIDC": "25.000",
          "GRAMNEED": "5.000",
          "SOLUSE": "0.250",
          "PRICE": "50000"
      }],
      "filmData": [{
          "id": "1",
          "Film Type": "PE",
          "Density": "0.9200",
          "Price": "6000"
      }, {
          "id": "2",
          "Film Type": "CPP",
          "Density": "0.9200",
          "Price": "9500"
      }, {
          "id": "3",
          "Film Type": "PET",
          "Density": "1.4100",
          "Price": "12000"
      }, {
          "id": "4",
          "Film Type": "BOPP",
          "Density": "0.9300",
          "Price": "9500"
      }, {
          "id": "5",
          "Film Type": "Al",
          "Density": "2.7400",
          "Price": "12000"
      }, {
          "id": "6",
          "Film Type": "BOPP MET",
          "Density": "0.9300",
          "Price": "10000"
      }],
      "cost": [{
          "ID": "1",
          "WORKERPART": "720",
          "ENERGYPART": "80",
          "BANKNUZUL": "1700",
          "TRANSFERIN": "100",
          "TRANSFERTO": "0",
          "PACKING": "60",
          "WASTE": "4",
          "COMMISION": "80",
          "SOLVENTPRICE": "4300"
      }]
  }
  </code></pre>