如何在Postman中向标题添加大型JSON对象?

时间:2017-06-13 09:59:23

标签: rest header postman

SendGrid API在X-SMTPAPI自定义标头字段中需要一些大型JSON。 我怎样才能进入&在Postman编辑这个?

E.g:

{
  "to": [
    "ben@sendgrid.com",
    "joe@sendgrid.com"
  ],
  "sub": {
    "%name%": [
      "Ben",
      "Joe"
    ],
    "%role%": [
      "%sellerSection%",
      "%buyerSection%"
    ]
  },
  "section": {
    "%sellerSection%": "Seller information for: %name%",
    "%buyerSection%": "Buyer information for: %name%"
  },
  "category": [
    "Orders"
  ]
}

1 个答案:

答案 0 :(得分:1)

嗨,它应该是东方做的。只需修改邮递员标题请求,如屏幕截图所示。

Screenshot of header