org.json.JSONException: Expected a ',' or '}' at 28 [character 29 line 1]

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JSON Error? - Unfolding library - Bug or something else?

    Geographic Information Systems | 11 months ago | Geosphere
    org.json.JSONException: Expected a ',' or '}' at 28 [character 29 line 1]
  2. 0

    Nearby search without results / Login problems

    GitHub | 5 years ago | Lineflyer
    org.json.JSONException: Value <?xml of type java.lang.String cannot be converted to JSONObject
  3. 0

    GitHub comment 294#143362629

    GitHub | 2 years ago | kenrestivo
    org.json.JSONException: Value null of type org.json.JSONObject$1 cannot be converted to JSONObject
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Clicking some elements in JP throws JSONException.

    GitHub | 2 years ago | Zhanglii
    org.json.JSONException: Unterminated object at character 71 of {\"status\":0,\"value\":{\"x\":308.5,\"y\":21,\"toString\":\"function (){return¥\"(¥\"+this.x+¥\", ¥\"+this.y+¥\")¥\"}\",\"ceil\":\"function (){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}\",\"floor\":\"function (){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}\",\"round\":\"function (){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}\"}}
  6. 0

    获取用户信息报错

    GitHub | 2 years ago | ljsalm089
    org.json.JSONException: Value javax.net.ssl.SSLPeerUnverifiedException of type java.lang.String cannot be converted to JSONObject

  1. Indri Yunita 4 times, last 1 week ago
  2. Dunmer 1 times, last 3 weeks ago
  3. justCodeit 12 times, last 2 months ago
  4. filpgame 2 times, last 2 months ago
  5. gamebusterz 6 times, last 3 months ago
18 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

    Expected a ',' or '}' at 28 [character 29 line 1]

    at org.json.JSONTokener.syntaxError()
  2. Android Platform
    JSONObject.<init>
    1. org.json.JSONTokener.syntaxError(Unknown Source)
    2. org.json.JSONObject.<init>(Unknown Source)
    3. org.json.JSONObject.<init>(Unknown Source)
    3 frames
  3. de.fhpotsdam.unfolding
    GeoJSONReader.loadDataFromJSON
    1. de.fhpotsdam.unfolding.data.GeoJSONReader.loadDataFromJSON(Unknown Source)
    1 frame