serialization

Installation
SKILL.md

Serialization in .NET

When to Use This Skill

Use this skill when:

  • Choosing a serialization format for APIs, messaging, or persistence
  • Migrating from Newtonsoft.Json to System.Text.Json
  • Implementing AOT-compatible serialization
  • Designing wire formats for distributed systems
  • Optimizing serialization performance

Serialization Format Comparison

Format Library AOT-Safe Human-Readable Relative Size Relative Speed Best For
JSON System.Text.Json (source gen) Yes Yes Largest Good APIs, config, web clients
Protobuf Google.Protobuf Yes No Smallest Fastest Service-to-service, gRPC wire format
Related skills

More from wshaddix/dotnet-skills

Installs
352
GitHub Stars
23
First Seen
Mar 7, 2026