Assuming your PHP script is producing correct JSON. Try changing this part
JSONArray jArray = new JSONArray(result);
to this.
JSONObject jObject = new JSONObject(result);
JSONArray jArray = jObject.getJSONArray("NomTableau");
2
solved org.json.JSONException: Value Exception of type java.lang.String cannot be converted to JSONArray