GET请求解析响应我有麻烦解析中的Android以下响应时:麻烦与来自Android中
{"success":true,"msg":"Okay","result":{"content_type_id":"2","Content_Type_Name":"Media"}}
我需要有content_type_id检索,所以可在一组方法中使用它。
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
// This is where I'm stuck.
}
一些我are not able to convert to JSONArray
和no value for
错误的。
我该如何解决这个问题?
谢谢@Vishal Chhodwani,这对我有用。 –
快乐都是我的:) –