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对象