Головна‎ > ‎C#‎ > ‎Додатково‎ > ‎

JSON

Dictionary<intstring> countries = new Dictionary<intstring>();
countries.Add(1, "Ukraine");

NuGet: newtonsoft json


string json = JsonConvert.SerializeObject(countries, Newtonsoft.Json.Formatting.Indented);

Console.WriteLine(json);