org.json.jsonexception: fin de l'entrée au caractère 0 de

Change

 JSONObject jsonObject = new JSONObject(result);
to

result=getJSONUrl(url);  //<< get json string from server
JSONObject jsonObject = new JSONObject(result);
Santino