Skip to content Skip to sidebar Skip to footer

How To Fix 'value Name Of Type Java.lang.string Cannot Be Converted To Jsonobject'

I'm am using Volley to send an HTTP request in Android and I'm getting this error: java.lang.String cannot be converted to JSONObject. On the server side, I use a PHP script to g

Solution 1:

use this site to generate a correct response class from json response

Solution 2:

You are getting JsonArray. You should use StringRequest. Then convert String to JsonArray and get JsonObject from the array.

Post a Comment for "How To Fix 'value Name Of Type Java.lang.string Cannot Be Converted To Jsonobject'"