org.json.JSONException: A JSONArray text must start 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 bngs
, 1 year ago
A JSONArray text must start with '[' at 1 [character 2 line 1]
via GitHub by Menci
, 1 year ago
A JSONArray text must start with '[' at 1 [character 2 line 1]
via Google Groups by Jenkins, 1 week ago
A JSONArray text must start with '[' at 1 [character 2 line 1]
via netbeans.org by Unknown author, 1 year ago
A JSONArray text must start with '[' at character 1 of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " "><html dir="ltr" xmlns=" "><head> <title>Welcome - Liferay</title><meta content="text/html; charset=UTF-8" http-equiv="content
via netbeans.org by Unknown author, 1 year ago
A JSONArray text must start with '[' at character 1 of <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " "><html dir="ltr" xmlns=" "><head> <title>Welcome - Liferay</title><meta content="text/html; charset=UTF-8" http-equiv="content
org.json.JSONException: A JSONArray text must start with '[' at 1 [character 2 line 1]
at org.json.JSONTokener.syntaxError(JSONTokener.java:433)
at org.json.JSONArray.(JSONArray.java:105)
at org.json.JSONArray.(JSONArray.java:144)
at itdelatrisu.opsu.Utils.readJsonArrayFromUrl(Utils.java:430)
at itdelatrisu.opsu.downloads.servers.HexideServer.resultList(HexideServer.java:84)
at itdelatrisu.opsu.states.DownloadsMenu$SearchQuery.run(DownloadsMenu.java:213)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 3 weeks ago
Once, 1 month ago
Once, 2 months ago
2 times, 3 months ago
66 times, 3 months ago

Write tip

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