Overview
Nerdbank.Json is a JSON serializer designed along the same architectural direction as Nerdbank.MessagePack while remaining fully independent from System.Text.Json and Newtonsoft.Json.
Install
dotnet add package Nerdbank.Json
Highlights
- Low-level UTF-8 readers and writers.
- PolyType contracts for mutable objects, records, and constructor-bound types.
- Incremental asynchronous streaming and asynchronous sequences.
- Shape-declared unions and runtime union configuration.
- Reference preservation, including optional cycles through mutable objects and collections.
- JSON Schema export and targeted deserialization.
The Features page describes the full surface, including converters, callbacks, collections, and ASP.NET Core MVC.
Getting started
Getting Started shows how to install the package, generate a PolyType shape, and serialize an object.