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 Letsplaybar
, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]
via GitHub by Letsplaybar
, 1 year ago
A JSONObject text must begin with '{' at 1 [character 2 line 1]
via GitHub by Letsplaybar
, 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]
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:206)
at com.plugish.woominecraft.Commands.WooCommand.onCommand(WooCommand.java:31)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162)
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997)
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715)
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 2 days ago
Once, 1 month ago
2 times, 2 months ago
66 times, 2 months ago
16 times, 6 months ago

Write tip

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