dotnet-json-polymorphic
Installation
SKILL.md
Configure polymorphic JSON serialization using [JsonPolymorphic] and [JsonDerivedType] attributes for type-safe inheritance hierarchies.
When to Use
- Serializing inheritance hierarchies with System.Text.Json
- Adding type discriminators for polymorphic deserialization
- Preparing polymorphic types for AOT-compatible JSON source generation
- Replacing Newtonsoft.Json
TypeNameHandlingwith modern attributes
Requirements
- .NET 7 or higher
Steps
- Ask scope:
- Ask user: "Apply to entire solution or specific project?"
- If specific project, ask which project