[Solved] org.json.JSONException: Value Exception of type java.lang.String cannot be converted to JSONArray

[ad_1]

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

[ad_2]

solved org.json.JSONException: Value Exception of type java.lang.String cannot be converted to JSONArray