我正在解析我的應用程序從Wordpress接收的帖子。我正在獲取數據。我把它放在字典裏。唯一的問題是我目前收到7個帖子。以下是我從服務器獲得的內容。解析JSON時從「元素」中獲取特定「元素」
status": "ok",
"count": 7,
"count_total": 7,
"pages": 1,
"posts": [
{
"id": 125,
"type": "post",
"slug": "michaela-hi",
"url": "http:\/\/www.garytournaments.com\/2013\/06\/18\/michaela-hi\/",
"status": "publish",
"title": "Test Posts",
so on and so on..till the next post
"id": 117,
"type": "post",
"slug": "may-4th-tournament",
"url": "http:\/\/www.garytournaments.com\/2013\/04\/29\/may-4th-tournament\/",
"status": "publish",
"title": "May 4th Tournament",
"title_plain": "May 4th Tournament
repeat;
我的問題是「身份證,slu,等」是所有的帖子的價值。我不知道如何提取個人數據以及將數據分解成單獨的帖子
所以posts是你的字典中的一個字典數組,這有什麼問題? – Wain