[
{
"totalArchiveCount": "8258",
"totalArchiveStatusList": [
{
"name": "在册",
"value": "7703",
"showCodeLevel": null
},
{
"name": "失访",
"value": "359",
"showCodeLevel": null
},
{
"name": "迁出外省",
"value": "196",
"showCodeLevel": null
}
],
"totalVaccinationCount": "4156",
"totalVaccinationChildCount": "1081",
"dayArchiveCount": "1",
"dayArchiveStatusList": [
{
"name": "在册",
"value": "1",
"showCodeLevel": null
},
{
"name": "失访",
"value": "0",
"showCodeLevel": null
},
{
"name": "迁出外省",
"value": "0",
"showCodeLevel": null
}
],
"dayVaccinationCount": "0",
"dayVaccinationChildCount": "0"
}
]
我要提取totalArchiveStatusList中所有的value,用这个$..totalArchiveStatusList[*].value表达式只能取到第一个
$[0].totalArchiveStatusList[*].value试试
https://wiki.apipost.cn/docs/AI/genscript
可以用我们最新版本 ai脚本自动生成功能 把需求写进去就可以生成脚本
回答上川同学:
$[0].totalArchiveStatusList[*].value,也是只取到一个value