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 TypeNameHandling with modern attributes

Requirements

  • .NET 7 or higher

Steps

  1. Ask scope:
    • Ask user: "Apply to entire solution or specific project?"
    • If specific project, ask which project
Installs
2
First Seen
Feb 4, 2026
dotnet-json-polymorphic — im5tu/dotnet-skills