org.json.JSONException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • why does it says it is a string?
    via Stack Overflow by user3244616
    ,
  • Json Parsing from Url In Android , Not working
    via Stack Overflow by Kumar
    ,
  • First run: Roomfinder fails
    via GitHub by kordianbruck
    ,
  • Failed to create JSON array.
    via GitHub by H4ck3d
    ,
    • org.json.JSONException: Value database of type java.lang.String cannot be converted to JSONArray at org.json.JSON.typeMismatch(JSON.java:111) at org.json.JSONArray.<init>(JSONArray.java:96) at org.json.JSONArray.<init>(JSONArray.java:108) at sample.com.dataccess.MainActivity.getData(MainActivity.java:94) at sample.com.dataccess.MainActivity.onCreate(MainActivity.java:45) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

    Users with the same issue

    ajinkya_w
    5 times, last one,
    Unknown visitor1 times, last one,
    szoszi
    2 times, last one,
    Unknown visitor2 times, last one,
    Unknown User
    5 times, last one,
    61 more bugmates