<Volley post JsonObject and get JsonArray kotlin> ...
# stackoverflow
u
Volley post JsonObject and get JsonArray kotlin I need to send JSONObject to my server API, but server returns me JSONArray. I have a error, because JSONObject is not JSONArray. I using volley kotlin. I try to change function to JsonArrayRequest and change everything, but I cant send (POST) jsonObject via this func val jsonreq: JSONObject = JSONObject(Gson().toJson(quiz)); val requestQueue = Volley.newRequestQueue(this) val jsonArrayRequesr = JsonArrayRequest(Request.Method.POST, url, jsonreq, object : Response.Listener { override fun...