System.Text.Json JsonStringEnumConverter with custom fallback in case of deserialization failures
I have a .NET 6 program that needs to deserialize a JSON string value (returned by external API) into a .NET enum. The issue is that there are over 100 possible enum values (and more could be added without my…