答案 0 :(得分:1)
您可以使用JSR223 Listener和Groovy language,相关代码如下:
1.upto(vars.get('enrolledDevices_matchNr') as int, { idx ->
def enrolledDevice = new groovy.json.JsonSlurper().parseText(vars.get('enrolledDevices_' + idx))
new File('myfile.csv') << enrolledDevice.name << ',' << enrolledDevice.id << System.getProperty('line.separator')
})