【发布时间】:2017-08-25 12:58:08
【问题描述】:
在 Android 中解析以下响应时遇到问题:
{"success":true,"msg":"Okay","result":{"content_type_id":"2","Content_Type_Name":"Media"}}
我需要检索 content_type_id,所以我可以在 set 方法中使用它。
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。
我该如何解决这个问题?
【问题讨论】:
标签: android json parsing android-volley