C#C
C#3y ago
1 reply
Stroniax

❔ Non-Dictionary Default Json Converter

I have an interface I have to implement which is derived from IReadOnlyDictionary<,>. This must be implemented by many classes. I don't want to write custom converter logic for all of these types, is there a way to tell the System.Text.Json.JsonSerializer to not use the dictionary converter and instead to use its regular converter logic for these types?
Was this page helpful?