JSONException: End of input at character 0

前端 未结 3 2022
心在旅途
心在旅途 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:05

    The reason why you get this error is because you attempt to access the response more than once. For example lets lets say you do a log with the response, then create a json object with the same response object, it will trigger this one time acees error.

提交回复
热议问题