//将数据解析成json格式 var data=JSON.parse(responseBody); //获取id值 var procInstId=data.data.id; var workId=data.data.works[0].id; pm.environment.set("procInstId", procInstId); pm.globals.set("procInstId", procInstId); pm.globals.set("workId", workId); console.log("procInstId", procInstId) console.log("workId", workId) 标签:set,提取,data,workId,id,json,数据,procInstId From: https://www.cnblogs.com/hahamelove/p/17075021.html