I've JSON Payload as below:
{
"Size": "100",
"ApplicationSource": "AMAZON",
"SearchData": [
{
"key": "orderID",
"value": ["23434332", "45654456",...]
},
{
"key": "orderGroupCode",
"value": "101"
}
]
}
The value
for orderID
key in SearchData
element can be single value or multiple values and are dynamic like this:
"value": "23434332"
or
"value": ["23434332", "45654456","5545645"]
How to create JSON object and parse and Execute RestClient request in C#.