System.Text.Json — .NET 11
Three APIs were added to
System.Text.Json
in .NET 11. This skill tells you exactly
when to reach for each one, what to write, what
not
to write, and how to prove the
result runs. Do not describe these APIs to the user — apply them, then run the code and
show the output.
API
Replaces the pre-.NET-11 workaround of...
JsonNamingPolicy.PascalCase
(static property)
writing a custom
JsonNamingPolicy
subclass or hand-annotating every member with
[JsonPropertyName]
JsonSerializerOptions.GetTypeInfo
system-text-json-net11
安装
npx skills add https://github.com/dotnet/skills --skill system-text-json-net11