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.


3 months ago

Solutions on the web341

Solution icon of github
via GitHub by Jason-Souma
, 8 months ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]

Solution icon of github
via GitHub by Jason-Souma
, 9 months ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]

Solution icon of github
via GitHub by Matthww
, 5 months ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]

Solution icon of github
via GitHub by beeedee
, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]

Solution icon of github
via GitHub by dseltzer
, 5 months ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]

Solution icon of github
via GitHub by rawlingsj
, 11 months ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]

Solution icon of github
via GitHub by netman1221
, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]

Solution icon of github
A JSONObject text must begin with '{' at 1 [character 2 line 1]

Solution icon of liferay
via Liferay Issues by Victor Ware, 3 months ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]

Solution icon of liferay
via Liferay Issues by Yanan Yuan, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]

Stack trace

org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
	at org.json.JSONTokener.syntaxError(JSONTokener.java:451)
	at org.json.JSONObject.<init>(JSONObject.java:195)
	at org.json.JSONObject.<init>(JSONObject.java:319)
	at me.checkium.vhackapi.vHackAPI.getStats(vHackAPI.java:52)
	at me.checkium.vhackapi.vHackAPI.<init>(vHackAPI.java:81)
	at me.checkium.vhackapi.vHackAPIBuilder.getAPI(vHackAPIBuilder.java:55)
	at examples.ConsoleExample.main(ConsoleExample.java:10)

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

88 times, 6 months ago
3 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
85 more bugmates