如何在Postman上显示JSON字符串更漂亮?

时间:2018-12-16 21:41:45

标签: json api http express postman

在Postman上,当响应的字符串为JSON时,它看起来像这样: (这是一个例子) "{\n \"title\" : \"Forbidden\",\n \"message\" : \"The user is not allowed to approve this post\",\n \"status\" : 403\n}" 当响应正文为原始JSON时,如何配置Postman向我显示响应正文更漂亮?

编辑

响应截图

Screenshot of the response

响应标题的屏幕截图

Screenshot of the response's headers

编辑2

我的方法正在传递JSON数组。其实是一个快速反应。当我使用response.send()时,JSON看起来不错,但是当我使用response.json()时,它看起来像字符串

0 个答案:

没有答案
相关问题