using System.Text.Json.Serialization;
public static void Main()
Console.WriteLine("Hello World");
var c1 = new C1 {Number= Number.Two};
public static string Serialize(object @object)
var options = new JsonSerializerOptions
Converters = { new JsonStringEnumConverter() },
var json = JsonSerializer.Serialize(@object,options);
public Number Number {get;set;}