Program.cs 194 B

1234567891011
  1. var person = new Person
  2. {
  3. name = "Имя",
  4. age = 18,
  5. date = "2024-03-07"
  6. };
  7. string json = JsonConvert.SerializeObject(
  8. person, Formatting.Indented);
  9. Console.WriteLine(json);