System Text JSON Dotnet 10 11 Strictness

Use when targeting recent .NET runtimes (8/9/10+) and you need the newer, stricter System.Text.Json behavior or APIs a model trained on older docs may not know — the JsonSerializerOptions.Strict preset, AllowDuplicateProperties, RespectNullableAnnotations / RespectRequiredConstructorParameters, rejecting unknown/unmapped configuration properties, PipeReader overloads, and JsonMarshal. Also covers why duplicate-key rejection matters at untrusted parse boundaries, the .NET 11 [JsonNamingPolicy] attribute and its non-transitivity, and getting newer STJ APIs on an older runtime via the out-of-band package.

richlander Updated

File contents

richlander/dotnet-package-skills/tree/main/examples/system-text-json/skills/system-text-json-dotnet-10-11-strictness commit 8942c4073f

Frequently asked questions

npx skillmds@latest add richlander/system-text-json-dotnet-10-11-strictness