我尝试从 json 数组中获取数据
String username = object.getJSONObject("items").getString("f");
但这给了我一个错误
"items.f" not found.
下面是 Json 数组。
{
"items": [
{
"s": "0",
"f": "monems",
"m": "ustad"
},
{
"s": "0",
"f": "monems",
"m": "There?"
},
{
"s": "0",
"f": "monems",
"m": "What's going on ?"
},
{
"s": "2",
"f": "monems",
"m": "Sent at 4:03AM May 20th"
}
]
}