User582566331 posted
How ro process json array in webapi
when pass
"test:"[{"CartNo": "SISPL/CART/381 /2019-20",
"Quantity": 1,
"SerialNo": 1,
"QuoteNo": "",
"Rate": 12345,
"CurrencyId": "INR"
},
{
"CartNo": "SISPL/CART/381 /2019-20",
"Quantity": 1,
"SerialNo": 2,
"QuoteNo": "",
"Rate": 123455,
"CurrencyId": "INR"
}]
using postman I am getting as
{{
"\"test:\"": {
"{\"CartNo\": \"SISPL/CART/381 /2019-20\",\r\n\"Quantity\": 1,\r\n\"SerialNo\": 1,\r\n\"QuoteNo\": \"\",\r\n\"Rate\": 12345,\r\n\"CurrencyId\": \"INR\"\r\n},\r\n\r\n{\r\n\"CartNo\": \"SISPL/CART/381 /2019-20\",\r\n\"Quantity\": 1,\r\n\"SerialNo\": 2,\r\n\"QuoteNo\":
\"\",\r\n\"Rate\": 123455,\r\n\"CurrencyId\": \"INR\"\r\n}]\r\n\r\n \r\n": ""
}
}}
From here I need to extract each object