开发者社区> 问答> 正文

如何使用setter和getter方法获取对象的对象数组及其响应

"Status": "success", "data": [ { "lead_id": "13653", "bp_id": "5d832cbeb4a36302da065233", "BP_consumer_id": 32, "agent_id": "56", "vertical_stage": "Meeting", "bp_vertical": { "vertical_name": "Mahesh Tutorials", "vertical_url": "http://mteducare.com", "category": "Agriculture/Food Processing", "sub_category": "Food", "isActive": "yes", "NPS_rating": [ { "promoter": { "1": { "relates_to": "5b2b2a28613b6ad01c014a29", "reasons": "Great product looks,Good product features,Product fits my need" }, "2": { "relates_to": "5b2b2a9a613b6ad01c014a60", "reasons": "Value for Money" }, "3": { "relates_to": "5b2b2a9a613b6ad01c014a62", "reasons": "Informative Advertisement,Informative Web-site,Informative Brochure" }, "4": { "relates_to": "5b754201b9bdada1ab2bc940", "reasons": "Informative Sales person,Delivery / Installation" }, "5": { "relates_to": "5b754201b9bdada1ab2bc942", "reasons": "I Love Godrej products,Positive Social Media reviews" }, "6": { "relates_to": "5b754201b9bdada1ab2bc944", "reasons": "Other Issue" }, "promoter_title": "Thank-you for High Ratings, give us your compliments" }, "passive": { "1": { "relates_to": "5b2b2a28613b6ad01c014a29", "reasons": "Great product looks,Good product features,Product fits my need" }, "2": { "relates_to": "5b2b2a9a613b6ad01c014a60", "reasons": "Value for Money" }, "3": { "relates_to": "5b2b2a9a613b6ad01c014a62", "reasons": "Informative Advertisement,Informative Web-site,Informative Brochure" }, "4": { "relates_to": "5b754201b9bdada1ab2bc940", "reasons": "Informative Sales person,Delivery / Installation" }, "5": { "relates_to": "5b754201b9bdada1ab2bc942", "reasons": "I Love Godrej products,Positive Social Media reviews" }, "6": { "relates_to": "5b754201b9bdada1ab2bc944", "reasons": "Other Issue" }, "passive_title": "Thank you for your Ratings, what went well ?" }, } ], "short_url": "b6zdm32", "shared_url": "http://mteducare.com?32" }, "pledge_id": "5d8c9005b4a363703c0d0234", "noOfOffersToBeSelected": "3" } ], "code": 200 }

展开
收起
小六码奴 2019-10-03 19:34:03 751 0
1 条回答
写回答
取消 提交回答
  • 可以在android studio中使用DTO生成器插件从JSON生成getter和setter。

    也可以使用http://pojo.sodhanalibrary.com/链接来生成getter和setter

    2019-10-09 16:05:20
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
建立联系方法之一 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载