org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]

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 eric2788
, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]
via GitHub by Jogib
, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]
via GitHub by Jogib
, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]
via GitHub by falmon
, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]
via GitHub by beeedee
, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]
via Stack Overflow by user26480
, 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 1 [character 2 line 1]
at org.json.JSONTokener.syntaxError(JSONTokener.java:433)
at org.json.JSONObject.(JSONObject.java:195)
at org.json.JSONObject.(JSONObject.java:319)
at com.plugish.woominecraft.WooMinecraft.check(WooMinecraft.java:142)
at com.plugish.woominecraft.Commands.WooCommand.onCommand(WooCommand.java:59)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:152)
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:665)
at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchServerCommand(CraftServer.java:628)
at net.minecraft.server.v1_10_R1.DedicatedServer.aL(DedicatedServer.java:442)
at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:405)
at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:725)
at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:624)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

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
Samebug visitor profile picture
Unknown user
Once, 2 years ago
88 times, 7 months ago
86 more bugmates

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