org.json.JSONException

A JSONObject text must begin with '{' at 1 [character 2 line 1]

Samebug tips1

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


LartenLarten

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

Solutions on the web531

Stack trace

  • org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1] at org.json.JSONTokener.syntaxError(JSONTokener.java:433) at org.json.JSONObject.<init>(JSONObject.java:197) at org.json.JSONObject.<init>(JSONObject.java:324) at br.usp.icmc.teste.ConnectionRestClient.getSaucelabsGetJobs(ConnectionRestClient.java:80) at br.usp.icmc.teste.TestePrincipal.main(TestePrincipal.java:9)

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

DunmerDunmer
88 times, last one
eti22eti22
3 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
82 more bugmates