//Set as environment variable
var sites = response.json()["sites"];
pm.environment.set("sites", sites);
//Set as global variable
var sites = response.json()["sites"];
pm.globals.set("sites", sites);
//Set as collection variable
var sites = response.json()["sites"];
pm.collectionVariables.set("sites", sites);
2条答案
按热度按时间x6yk4ghg1#
您可以使用
lodash
函数来完成此操作。gojuced72#