org.json.JSONException

End of input at character 0 of

Samebug tips1

The json is invalid or you try to map to a different model.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1040

  • via GitHub by bastei
    , 3 months ago
    End of input at character 0 of
  • End of input at character 0 of
  • via GitHub by door43app
    , 1 year ago
    End of input at character 0 of
  • Stack trace

    • org.json.JSONException: End of input at character 0 of at org.json.JSONTokener.syntaxError(JSONTokener.java:450) at org.json.JSONTokener.nextValue(JSONTokener.java:97) at org.json.JSONObject.<init>(JSONObject.java:156) at org.json.JSONObject.<init>(JSONObject.java:173) at lloyd.sp.com.studentportal.LoginActivity$HttpAsyncTask.onPostExecute(LoginActivity.java:160) at lloyd.sp.com.studentportal.LoginActivity$HttpAsyncTask.onPostExecute(LoginActivity.java:130) at android.os.AsyncTask.finish(AsyncTask.java:636) at android.os.AsyncTask.access$500(AsyncTask.java:177) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5637) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    10 times, 3 weeks ago
    5 times, 1 month ago
    4 times, 8 months ago
    32 times, 1 year ago
    12 times, 4 months ago
    82 more bugmates