【问题标题】:How to catch the JSON response when response have two or more arrays in android [duplicate]当响应在android中有两个或多个数组时如何捕获JSON响应[重复]
【发布时间】:2017-10-11 06:59:55
【问题描述】:

这是我的JSON 数据格式

[{"member":[{"id":"1","name":"A V S Murthy (Sanjeev)","mobile1":"9845072215","mail_id":"alampalli.murthy@gmail.com","bg":"O +Ve"},{"id":"67","name":"Sundaramurthy N C","mobile1":"9845026300\t","mail_id":"ncsmurthy1943@gmail.com","bg":"O +Ve"}]},{"anne":[{"id":"1","name":"A V S Murthy (Sanjeev)","mobile1":"9845072215","mail_id":"alampalli.murthy@gmail.com","bg":"O +Ve","anne_name":"Shoba A Murthy","anne_mobile":"","anne_email":""}]},{"annets":[]}]

【问题讨论】:

标签: android arrays json


【解决方案1】:

首先访问http://www.jsonschema2pojo.org/ 并创建您的模型类。 (或手动创建) 比使用https://github.com/google/gson库进行解析

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-26
    • 2013-10-31
    • 1970-01-01
    • 2020-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多