创建用于解析android json的pojo类

时间:2016-12-25 05:32:19

标签: android

我从api回复json:

    {
  "0": {
    "review_id": "2",
    "ad_id": "27",
    "user_id": "2",
    "name": "John1",
    "rating": "4",
    "title": "Nice object1",
    "comment": "Nice",
    "status": "1",
    "created_date": "2016-12-12 15:46:18",
    "modified_date": "2016-12-12 21:17:24",
    "modified_by": "0",
    "add_title": "Sell new new plot"
  },
  "1": {
    "review_id": "3",
    "ad_id": "27",
    "user_id": "2",
    "name": "John2",
    "rating": "3",
    "title": "Nice object2",
    "comment": "Nice",
    "status": "1",
    "created_date": "2016-12-12 12:46:18",
    "modified_date": "2016-12-12 21:17:24",
    "modified_by": "0",
    "add_title": "Sell new new plot"
  },
  "2": {
    "review_id": "4",
    "ad_id": "27",
    "user_id": "2",
    "name": "John3",
    "rating": "4",
    "title": "Nice object3",
    "comment": "Nice",
    "status": "1",
    "created_date": "2016-12-12 11:46:18",
    "modified_date": "2016-12-12 21:17:24",
    "modified_by": "0",
    "add_title": "Sell new new plot"
  },
  "status": 1,
  "count": 3,
  "msg": "Total Number of found records "
}

当我尝试创建这个json的pojo类时,它没有给出正确的类。有人可以帮我解决这个json的问题吗? 感谢。

0 个答案:

没有答案