【发布时间】:2018-12-19 13:21:29
【问题描述】:
有没有人知道如何使用 JSONObject 和 JSONArray 从 android 中的这个 JSON 数组中获取字符串“num12”?
[{
"id": 7378,
"status": "publish",
"acf": {
"dars": [{
"title": "math",
"cat": "cat1",
"kind": "free",
"question": "num1"
},{
"title": "math2",
"cat": "cat12",
"kind": "free",
"question": "num12"
}]
}
}]
【问题讨论】:
-
1) 获取此
num12键所在的对象。 2) 获取值本身。