特别说明:**Compute concatenation var(suffix_ALL)*如果找到许多结果,则插件将使用’ , '分隔符将它们连接起来,并将其存储在名为 _ALL的var中
在查看结果树中选择JSON Path Tester,将表达式写在expression,点击Test
int num = Integer.valueOf("${nodeIds_matchNr}");
String nodeIdList = "";
for(i=1;i<=num;i++){
String str = vars.get("nodeIds_" + i);
nodeIdList += "\"" + str;
if(i < num){
nodeIdList += "\",";
}else{
nodeIdList += "\"";
}
}
vars.put("nodeIdList",nodeIdList);