org.json.JSONException: A JSONObject text must begin with '{' at character 0

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 GitHub by SunitaMK
, 2 years ago
A JSONObject text must begin with '{' at character 0
via Stack Overflow by user3464499
, 7 months ago
A JSONObject text must begin with '{' at character 1
via Stack Overflow by user3924332
, 8 months ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]
via qnundrum.com by Unknown author, 1 year ago
A JSONObject text must begin with '{' at character 1 of "{\"reversed\": "!EM esreveR"}"
via fractalsoftworks.com by Unknown author, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]
org.json.JSONException: A JSONObject text must begin with '{' at character 0
at org.json.JSONTokener.syntaxError(JSONTokener.java:410)
at org.json.JSONObject.(JSONObject.java:179)
at org.json.JSONObject.(JSONObject.java:402)
at io.selendroid.server.util.HttpClientUtil.parseJsonResponse(HttpClientUtil.java:57)
at io.selendroid.server.handler.RequestRedirectHandler.redirectRequest(RequestRedirectHandler.java:121)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
88 times, 7 months ago
3 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
86 more bugmates

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