EnumConverterFactory sealed class EnumConverterFactory : JsonConverterFactory Documentation Code using System.Reflection; namespace System.Text.Json.Serialization.Converters { internal sealed class EnumConverterFactory : JsonConverterFactory { public override bool CanConvert(Type type) { return type.IsEnum; } public override JsonConverter CreateConverter(Type type, JsonSerializerOptions options) { return (JsonConverter)Activator.CreateInstance(typeof(EnumConverter<>).MakeGenericType(type), BindingFlags.Instance | BindingFlags.Public, null, new object[2] { EnumConverterOptions.AllowNumbers, options }, null); } } }