using System.Collections.Generic;
using Newtonsoft.Json.Linq;
public static void Main()
var obj = new { product = 1, name = "Nike", madeIn = new List<string>{"USA","Vietname"} };
Console.WriteLine(JsonConvert.SerializeObject(obj));
IDictionary<string, object> dictionary = new Dictionary<string, object>(){};
dictionary["product"] = 1;
dictionary.Add("name","Nike");
dictionary["madeIn"] = new List<string>(){"USA","Vietname"};
Console.WriteLine(JsonConvert.SerializeObject(dictionary));
dynamic jObject = new JObject();
jObject.madeIn = new JArray();
jObject.madeIn.Add("USA");
jObject.madeIn.Add("Vietname");
Console.WriteLine(jObject.ToString());