解析一段json 最好是能解析成list 255

{"code":"0","msg":"Success","data":{"total":500,"pageNo":1,"pageSize":20,"list":[{"sn... {
"code": "0",
"msg": "Success",
"data": {
"total": 500,
"pageNo": 1,
"pageSize": 20,
"list": [
{
"snapInfo": {
"bkgUrl": "http://10.19.132.9:6040/pic?=d3=0dpi*=1d7i3t1pe*m5i14=89ba-28zad1s=439cd1",
"snapUrl": "http://10.19.132.9:6040/pic?=d72i794e*9dbi99b-a24aeb--193f24c8ifb1*=sd*pe*m5i14=89ba-28zad1s=337cd3",
"deviceIndexcode": "e973dc5f76c443c2ad6f404b679d39d5",
"deviceName": "设备名称",
"cameraIndexcode": "282c954b564045a59353f6441bbbbf76",
"cameraName": "监控点名称",
"gender": "male",
"age": "young\t",
"glass": "yes",
"eventTime": "2019-01-31 16:24:18+08"
},
"targetInfoList": [
{
"name": "张三",
"similarity": 6,
"certificateType": "ID",
"sex": "male",
"certificateNumber": "1234567890",
"faceInfoIndexcode": "624cfb31-16bd-4747-afb1-a9468ff9a441",
"faceGroupIndexcode": "e8997392-a969-429c-acee-8879d6eff3b1",
"faceGroupName": "人脸分组名称",
"faceUrl": "http://10.33.47.14:6120/pic?8dd195ic3-e*9da4818ab115m4ep=t =d1s*i=d1b*i8d4d*8af2fc914- -03ebd05zb97s=8i94="
}
]
}
]
}
}
展开
 我来答
请轻亲青草
2019-09-29 · TA获得超过633个赞
知道小有建树答主
回答量:1901
采纳率:85%
帮助的人:218万
展开全部
 let str = {
        "code": "0",
        "msg": "Success",
        "data": {
            "total": 500,
            "pageNo": 1,
            "pageSize": 20,
            "list": [
                {
                    "snapInfo": {
                        "bkgUrl": "http://10.19.132.9:6040/pic?=d3=0dpi*=1d7i3t1pe*m5i14=89ba-28zad1s=439cd1",
                        "snapUrl": "http://10.19.132.9:6040/pic?=d72i794e*9dbi99b-a24aeb--193f24c8ifb1*=sd*pe*m5i14=89ba-28zad1s=337cd3",
                        "deviceIndexcode": "e973dc5f76c443c2ad6f404b679d39d5",
                        "deviceName": "设备名称",
                        "cameraIndexcode": "282c954b564045a59353f6441bbbbf76",
                        "cameraName": "监控点名称",
                        "gender": "male",
                        "age": "young\t",
                        "glass": "yes",
                        "eventTime": "2019-01-31 16:24:18+08"
                    },
                    "targetInfoList": [
                        {
                            "name": "张三",
                            "similarity": 6,
                            "certificateType": "ID",
                            "sex": "male",
                            "certificateNumber": "1234567890",
                            "faceInfoIndexcode": "624cfb31-16bd-4747-afb1-a9468ff9a441",
                            "faceGroupIndexcode": "e8997392-a969-429c-acee-8879d6eff3b1",
                            "faceGroupName": "人脸分组名称",
                            "faceUrl": "http://10.33.47.14:6120/pic?8dd195ic3-e*9da4818ab115m4ep=t =d1s*i=d1b*i8d4d*8af2fc914- -03ebd05zb97s=8i94="
                        }
                    ]
                }
            ]
        }
    };
    console.log(str.data.list);

 请采纳

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式