Serialize a Collection to JSON

Serialize a Collection to JSON

List<string> json = new List<string>
{
    "ab",
    "Hallo",
    "hi"
};

string response = JsonConvert.SerializeObject(json);

Console.WriteLine(response);
// ["ab","Hallo","hi"]

2020-02-02