JsonSerializer

The .NET class, part of System.Text.Json, that converts objects to JSON text and back.

In more detail

ASP.NET Core uses it to read request bodies and write responses. It works with public properties, which is another reason types expose properties rather than fields.

Related terms

Taught in

References