Update formatting.md (#18369)
parent
654d371cd2
commit
d33634604e
|
@ -146,7 +146,7 @@ public IActionResult Get()
|
|||
|
||||
### Add Newtonsoft.Json-based JSON format support
|
||||
|
||||
Prior to ASP.NET Core 3.0, the default used JSON formatters implemented using the `Newtonsoft.Json` package. In ASP.NET Core 3.0 or later, the default JSON formatters are based on `System.Text.Json`. Support for `Newtonsoft.Json` based formatters and features is available by installing the [Microsoft.AspNetCore.Mvc.NewtonsoftJson](https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson/) NuGet package and configuring it in `Startup.ConfigureServices`.
|
||||
Prior to ASP.NET Core 3.0, the default used JSON formatters implemented using the `Newtonsoft.Json` package. In ASP.NET Core 3.0 or later, the default JSON formatters are based on `System.Text.Json`. Support for `Newtonsoft.Json` based formatters and features is available by installing the [`Microsoft.AspNetCore.Mvc.NewtonsoftJson`](https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.NewtonsoftJson/) NuGet package and configuring it in `Startup.ConfigureServices`.
|
||||
|
||||
[!code-csharp[](./formatting/3.0sample/StartupNewtonsoftJson.cs?name=snippet)]
|
||||
|
||||
|
|
Loading…
Reference in New Issue