更新时间:2023-01-17 10:34:27
为什么不使用StringRequest
?
如果您的回答是JsonArray
或JsonObject
,您也可以从StringResponse
那里获得它.
If your response is JsonArray
or JsonObject
you can get it from StringResponse
as well.
String response;
JSONArray arrayResponse = new JSONArray(response);