Serialization · Aaronontheweb/dotnet-skills

Choose the right serialization format for .NET apps

Compares schema-based formats like Protobuf and MessagePack against reflection-based ones like Newtonsoft.Json, and explains when to use System.Text.Json with AOT source generators, useful for APIs, messaging, event sourcing, and caching decisions in .NET.

Good for

  • Pick a serialization format for a .NET API
  • Migrate from Newtonsoft.Json to System.Text.Json
  • Choose a wire format for event sourcing or caching
Category
General

Open-source skills are maintained by their authors and listed as published, with attribution. Results depend on how well the skill fits your task and material.

A good place to start

We're designing an actor messaging system in .NET — which serialization format should we use and why?

Make your next great thing.

Bring a question, a file, or an idea that’s not quite there yet.