input formatter
The component that reads a request body in a given format, such as JSON, and deserialises it into the action's parameter type.
In more detail
Which formatter runs is chosen from the request's Content-Type header. ASP.NET Core's default input formatter uses System.Text.Json.
Related terms
- model binding — Turning parts of an HTTP request, such as route values, the query string, headers and the JSON body, into typed parameters for your handler.
- JsonSerializer — The .NET class, part of System.Text.Json, that converts objects to JSON text and back.
- serialization — Turning an in-memory object into bytes, such as JSON text, that can be sent or stored, and parsing it back again.
Taught in
- Building Routes with Controllers — Modern .NET Core, C# & Enterprise Microservices