org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject


Solutions on the web389

Solution icon of github
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

Solution icon of github
via GitHub by danieloprado
, 11 months ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

Solution icon of github
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

Solution icon of github
Value <!doctype of type java.lang.String cannot be converted to JSONObject

Solution icon of github
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

Solution icon of github
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

Solution icon of stackoverflow
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

Solution icon of stackoverflow
via Stack Overflow by Roshdy
, 1 month ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

Solution icon of web
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

Solution icon of github
via GitHub by derkostka
, 1 year ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

Stack trace

org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
	at org.json.JSON.typeMismatch(JSON.java:111)
	at org.json.JSONObject.<init>(JSONObject.java:160)
	at org.json.JSONObject.<init>(JSONObject.java:173)
	at com.ifreedom.StatusActivity$CheckVersion.onPostExecute(StatusActivity.java:497)
	at com.ifreedom.StatusActivity$CheckVersion.onPostExecute(StatusActivity.java:1)
	at android.os.AsyncTask.finish(AsyncTask.java:651)

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

2 times, 1 month ago
4 times, 5 months ago
17 times, 8 months ago
56 times, 11 months ago
2 times, 1 year ago
81 more bugmates