解析一段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="
}
]
}
]
}
} 展开
"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="
}
]
}
]
}
} 展开
1个回答
展开全部
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);
请采纳
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询