I am constructing a string like the following:
List<string> itemList = new List<string>();
foreach (i in items)
{
itemList.Add("{ type: " + i.DocumentType + " ,id: " + i.ID + " ,name: " + i.name + " }" );
}
I want to convert the itemList to a JSON object and return it as response in my controller.
Please help.