我正在解析我的应用从 Wordpress 收到的帖子。我正在获取数据。我把它放在字典里。唯一的问题是我目前收到 7 个帖子。以下是我从服务器获得的信息。
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;
我的问题是“id、slug 等”都在 post 的值中。我不知道如何提取单个数据以及将数据分解为单个帖子