org.json.JSONException: End of input at character 0 of

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

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

Solutions on the web

via Stack Overflow by malav shah
, 1 year ago
via GitHub by dvdbrk
, 5 months ago
End of input at character 0 of
via Stack Overflow by R.H
, 2 months ago
End of input at character 0 of
via Stack Overflow by Unknown author, 2 years ago
End of input at character 1 of
org.json.JSONException: End of input at character 0 of
at org.json.JSONTokener.syntaxError(JSONTokener.java:449)
at org.json.JSONTokener.nextValue(JSONTokener.java:97)
at org.json.JSONObject.(JSONObject.java:156)
at org.json.JSONObject.(JSONObject.java:173)
at com.malav.holistree.util.JSONfunctions.makeHttpRequest(JSONfunctions.java:141)
at com.malav.holistree.dashboard.DashboardFragment$fetchQuote.doInBackground(DashboardFragment.java:492)
at com.malav.holistree.dashboard.DashboardFragment$fetchQuote.doInBackground(DashboardFragment.java:476)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

Once, 1 month ago
31 times, 1 month ago
64 times, 2 months ago
16 times, 5 months ago
151 times, 8 months ago
86 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.