我正在尝试解析Json,它会显示错误
final StringRequest request = new StringRequest(Request.Method.GET, URL_DATA, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
// Log.d(TAG, response);
try {
JSONObject jobj = new JSONObject(response);
Log.d(TAG, jobj.toString());
} catch (JSONException e) {
e.printStackTrace();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
}
});
RequestQueue reQueue = Volley.newRequestQueue(this);
reQueue.add(request);
}