postman.setEnvironmentVariable('complexObj',
JSON.stringify(myComplexObjOrArray, null, 2));
var foo;
try {
foo = JSON.parse(postman.
getEnvironmentVariable('complexObj'));
}
catch (e) {
console.error(e);
foo = { __parseError: true };
}
if (foo.__parseError) {
}