小编wal*_*eed的帖子

如何将 JSON 数组转换为 JSON 对象

我有以下 JSON 数据:

[
    {
        "sendingReqDataSet": {
            "totalCount": 1,
            "limit": 50,
            "offset": 0,
            "status_code": true,
            "contacts": [
                {
                    "id": 1,
                    "request_to": "Shehla_kiran",
                    "request_by": "ayesha",
                    "product_name": "Dead Space",
                    "schedule_date_time": "2016-09-21 00:00:00",
                    "place": "lhr",
                    "request_type": "Swap",
                    "status": "Pending"
                },
                {
                    "id": 2,
                    "request_to": "muqadas",
                    "request_by": "muqadas",
                    "product_name": "battleField",
                    "schedule_date_time": "2016-09-22 00:00:00",
                    "place": "lhr",
                    "request_type": "Swap",
                    "status": "Pending"
                },
                {
                    "id": 3,
                    "request_to": "Shehla_kiran",
                    "request_by": "Shehla_kiran",
                    "product_name": "Mario",
                    "schedule_date_time": "2016-09-12 00:00:00",
                    "place": "Lahore",
                    "request_type": "Swap",
                    "status": "Pending"
                },
                {
                    "id": 4,
                    "request_to": "Shehla_kiran", …
Run Code Online (Sandbox Code Playgroud)

android json android-json

0
推荐指数
1
解决办法
3万
查看次数

标签 统计

android ×1

android-json ×1

json ×1