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

Stack Overflow | Codet | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Java JSON weird error

    Stack Overflow | 6 months ago | Codet
    org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
  2. 0

    Doesnt appear to be a working build

    GitHub | 2 years ago | dtpowers
    org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
  3. 0

    RESTful web service with Zend Framework 2

    Stack Overflow | 3 years ago
    org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java 7:: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure (Security forum at Coderanch)

    coderanch.com | 9 months ago
    org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
  6. 0

    Jsonexception: text must begin with '{'

    Stack Overflow | 2 years ago | Sumanth Udupa
    org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]

  1. Indri Yunita 2 times, last 2 days ago
  2. justCodeit 12 times, last 2 weeks ago
  3. filpgame 2 times, last 1 month ago
  4. gamebusterz 6 times, last 2 months ago
  5. eti22 3 times, last 3 months ago
17 more registered users
33 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.json.JSONException

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

    at org.json.JSONTokener.syntaxError()
  2. Android Platform
    JSONObject.<init>
    1. org.json.JSONTokener.syntaxError(JSONTokener.java:432)
    2. org.json.JSONObject.<init>(JSONObject.java:184)
    2 frames
  3. Unknown
    LibraryOfMovieDescriptions.main
    1. MovieLibrary.<init>(MovieLibrary.java:76)
    2. LibraryOfMovieDescriptions.main(LibraryOfMovieDescriptions.java:11)
    2 frames