【发布时间】:2023-01-03 21:36:10
【问题描述】:
有没有办法在邮递员中发送这样的东西?
{
"a": [undefined, {"b":"ball", "c":"cat"}]
}
Postman 在undefined 下划了红色下划线。如果我使用 pm.variables.set('undefinedVariable', undefined); 的预请求脚本并使用它,那么我的代码会出现此错误
{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid request payload JSON format"
}
【问题讨论】: