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
- serialization — Turning an in-memory object into bytes, such as JSON text, that can be sent or stored, and parsing it back again.
- JSON — A simple text format for structured data made of keys, values, lists and nested objects.
- property — A named value belonging to an object; in languages such as C# and Python, it can also be a member that looks like a field but runs code when read or written.
Taught in
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- Async and Await: Managing Concurrency — Modern .NET Core, C# & Enterprise Microservices