79269119

Date: 2024-12-10 17:18:54
Score: 1.5
Natty:
Report link

For anyone who has recently encountered this issue, according to this article from Microsoft System.Text.Json started supporting serialization of the derived classes since .NET7.

You can achieve this by adding attribute annotations to the main class

[JsonDerivedType(typeof(DerivedExtensionA))]
public abstract class Extension
Reasons:
  • Blacklisted phrase (1): this article
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Roozbeh