使用改造的jsonarray和jsonobject解析的组合?

时间:2017-05-18 11:35:48

标签: android json retrofit

[{“location”:“Pune”,“nid”:“3”,“title”:“Internatinal dance academy”,“field_product_images”:[{“fid”:“36”,“uid”:“ 1" , “文件名”: “A.JPG”, “URI”: “公共://a.jpg”, “filemime”: “图像/ JPEG”, “文件大小”: “72172”, “状态”:” 1" , “时间戳”: “1482923103”, “rdf_mapping”:[], “ALT”: “”, “标题”: “”, “宽度”: “200”, “高度”: “150”}], “field_timing”:“8:00 am-3pm”,“field_location”:“2nd mzin road 7th block”},{“location”:“Delhi”,“nid”:“2”,“title”:“Yamaha Balle类 “ ”field_product_images“:[{ ”FID“: ”169“, ”UID“: ”1“, ”文件名“: ”dance_music_people_traffic_54208_1920x1080.jpg“, ”URI“: ”公共://dance_music_people_traffic_54208_1920x1080.jpg“,” filemime “:” 图像/ JPEG”, “文件大小”: “5850”, “状态”: “1”, “时间戳”: “1495020629”, “rdf_mapping”:[], “ALT”: “”, “标题” :“”,“width”:“200”,“height”:“150”}],“field_timing”:“10.00am-4.30pm”,“field_location”:“jaynagar 4th block”}]

this is my json url

1 个答案:

答案 0 :(得分:0)

好的goto

粘贴你的json> onRight边选择源类型:> JSON和注释样式:> GSON

这是创建您的Model类作为响应。

现在访问Here to use retrofit

现在您可以轻松处理任何JSON数据