JsonArrayRequestpublic class JsonArrayRequest extends JsonRequest A request for retrieving a {@link JSONArray} response body at a given URL. |
Methods Summary |
---|
protected com.android.volley.Response | parseNetworkResponse(com.android.volley.NetworkResponse response)
try {
String jsonString =
new String(response.data, HttpHeaderParser.parseCharset(response.headers));
return Response.success(new JSONArray(jsonString),
HttpHeaderParser.parseCacheHeaders(response));
} catch (UnsupportedEncodingException e) {
return Response.error(new ParseError(e));
} catch (JSONException je) {
return Response.error(new ParseError(je));
}
|
|