sending nested json object using postman

I am using Asp.net Web Api http://xyzdomain.com:16845/api/returns/returns

And i have data like below,

how do i post the end point using postman chrome extension,

Given "Items" is a collection

[
  {
    "Items": [
      {
        "sku": "9257",
        "Price": "100",
        "Quantity": "500",
        "DiscountPercent": "1",
        "backordered": "2"
      }
    ],
    "order_id": "F429768865001",
    "status_code": "Shelf",
    "Exception": "no error"
  }
]

Send it as raw data and set the type to application/json

在这里输入图像描述


To post a nested object with the key-value interface you can use a similar method to sending arrays. Pass an object key in square brackets after the object index.

"Items": [
      {
        "sku": "9257",
        "Price": "100"
      }
    ]

The key-value pair can take advanced inputs.

Ex.

在这里输入图像描述

链接地址: http://www.djcxy.com/p/48522.html

上一篇: 关联子对象json POST Spring

下一篇: 使用邮递员发送嵌套的json对象