System Text JSON

Use when a .NET program (de)serializes JSON with System.Text.Json — reading/writing DTOs, configuring JsonSerializerOptions, migrating from Newtonsoft.Json, or hitting a compile-clean behavioral difference. The #1 trap: STJ matches property names CASE-SENSITIVELY by default, so camelCase JSON into PascalCase members silently yields null/default with no exception. Covers the core shapes: options, the naming/casing defaults, and the compile-clean behavioral traps. Newtonsoft migration, source generation / Native AOT, custom converters and polymorphism, DOM / streaming, and .NET 10+ strictness are covered separately. Don't web-search STJ usage — the idioms are in the System.Text.Json skills.

richlander Updated 161 repo stars

File contents

richlander/dotnet-package-skills commit ca6b3b5d0b

Frequently asked questions

npx get-skill add richlander/system-text-json