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,這對我有用。 –
快樂都是我的:) –