我有一個PHP腳本返回JSON,如下圖所示:解析JSON在活動對象在android系統
[{"title":"Clothes are selling well","location":"Los Angeles","imageUrl":"xxx","pubDate":"2014-07-26 13:58:08","id":"1"},{"title":"Polo this summer","location":"UAE","imageUrl":"YYY","pubDate":"2014-07-26 18:05:26","id":"2"},{"title":"Samsung: New tablets","location":"Kuwait","imageUrl":"IIIIII","pubDate":"2014-07-26 18:05:26","id":"3"}]
我需要在我的活動類來解析此JSON。有關如何做到這一點的任何建議?我將創建一個具有以下屬性的對象:
- 標題
- 位置
- 的ImageUrl
- pubdate的
在此先感謝