org.json.JSONException

Value New of type java.lang.String cannot be converted to JSONObject

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1421

  • via Stack Overflow by Brian
    , 10 months ago
    Value New of type java.lang.String cannot be converted to JSONObject
  • Value Cannot of type java.lang.String cannot be converted to JSONObject
  • via GitHub by posativ
    , 1 year ago
    Value Cannot of type java.lang.String cannot be converted to JSONObject
  • Stack trace

    • org.json.JSONException: Value New of type java.lang.String cannot be converted to JSONObject at org.json.JSON.typeMismatch(JSON.java:111) at org.json.JSONObject.<init>(JSONObject.java:160) at org.json.JSONObject.<init>(JSONObject.java:173) at com.example.brian.nodelogin.RegisterActivities.RegisterUserDetailsActivity$7$1.onResponse(RegisterUserDetailsActivity.java:223) at com.example.brian.nodelogin.RegisterActivities.RegisterUserDetailsActivity$7$1.onResponse(RegisterUserDetailsActivity.java:219) at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:67) at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:30) at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) 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:899)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    36 times, 3 weeks ago
    38 times, 1 month ago
    4 times, 3 months ago
    32 times, 4 months ago
    4 times, 5 months ago
    78 more bugmates