Im trying to do a POST request to a page the parameters needed for the request have to be in a json because they are in this format:
{
a: 1,
b: "ASD",
c: ["A","B"]
}
which as far as i know this cant be turned to a Map<String, String>
object, which is needed in order to make a StringRequest
instead of a JsonObjectRequest
, with that being said is there any way to send a jsonObject
as parameter and still be able to handle a string response from the server (Using volley)?
I have read these questions already:
-This one didn't get a functioning answer
How to get string response from php using android volley JsonObjectRequest?
-This one doesn't answer my question
-This one has a promising answer with custom requests, but it does the opposite of what im attempting and i was unsuccessful at creating my own custom request that accepted the params i needed.