例子:
{ "code": 10000, "msg": "操作成功", "traceId": "", "timestamp": 1715677467068, "data": [ { "id": "509", "name": "休闲套装", "describeContent": "安德玛男女运动休闲套装", "countProduct": true }, { "id": "508", "name": "接口自动化方案20240514163037", "describeContent": "方案描述", "countProduct": true } ] }
提取出name包含“接口自动化方案”的id
$.data[?(@.name =~ /^接口自动化方案.*/)].id
标签:describeContent,data,接口,jsonpath,true,id,表达式,name From: https://www.cnblogs.com/yrxns/p/18191743