How to pass data table values to API payloads

Hi,
I have one datatable (Input_DT). It contains product code, quantity, price. Those datatable values need to pass in payload. How to insert data table values to payload(products info dictionary). Unable to find options in HTTP request activity.

Example payload: {
“email”: “xyz@abc.com”,
“requestType”: “ORDER creation”,
“recipients”: ,
“productinfo”: [
{
“productCode”: “101”,
“quantity”: 12,
“price”:2456
},
{
“productCode”: “102”,
“quantity”: 10,
“price”:2466
},
{
“productCode”: “103”,
“quantity”: 18,
“price”:3000
}
],
}

@balanirmalkumar.s,

Try serialize the datatable using JsonConvert.SerializeObject(yourdatatable)

How to pass that datatable values to payload.

@balanirmalkumar.s,

Serialization will give you json string as result which you can pass as payload as per API requirement.

@balanirmalkumar.s

please check this on approach on how to create

cheers