org.json.jsonexception: конец ввода в символе 0

Change

 JSONObject jsonObject = new JSONObject(result);
to

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