system-text-json-net11

安装量: 1.1K
排名: #10026

安装

npx skills add https://github.com/dotnet/skills --skill system-text-json-net11

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() calling non-generic GetTypeInfo(typeof(T)) and casting to JsonTypeInfo JsonSerializerOptions.TryGetTypeInfo(out JsonTypeInfo? info) wrapping GetTypeInfo in try / catch to probe availability Step 0 — Confirm you can target .NET 11 These APIs only exist in the .NET 11 base class library. Before writing code: Show more Installs 908 Repository dotnet/skills GitHub Stars 5.2K First Seen May 4, 2026 Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

返回排行榜