JsonConverterAttribute is not used by JsonSerializer
I am trying to serialize a property of Encoding type. I wrote a converter class for that purpose. When I use JsonSerializerOptions everything works, but when I use JsonConverterAttribute I get an exception. I am not sure what I am…