JSONException: End of input at character 0

前端 未结 3 2034
心在旅途
心在旅途 2020-12-20 05:48

i am trying to get JSON values from server. I don\'t know what is wrong with my code. I am using AsyncTask and here is my code in doInBackground

3条回答
  •  失恋的感觉
    2020-12-20 06:10

    You are probably getting a blank response. Its not null but the jsontext is empty. So you are getting this error and not a Nullpointer exception

    Are you sending right parameters to server.Also Check url respond to POST requests or not.

提交回复
热议问题