【发布时间】:2018-07-03 22:06:27
【问题描述】:
我正在尝试通过 Post Request Script 在 Postman 中访问我的 POST 请求的响应。
我在Pre-request Script下添加了这两行
let response = pm.response.json();
console.log('JSON Response: ',response );
然后,我打开我的 Postman 控制台,然后点击 Send 发出我的 POST 请求
我一直在得到
评估预请求脚本时出错:TypeError: Cannot read property 'json' of undefined
我需要在 Postman 上启用什么吗?
【问题讨论】:
标签: javascript json postman