addnewtonsoftjson nuget code example
Example 1: json nuget package manager
Install-Package Newtonsoft.Json -Version 12.0.3
Example 2: asp net core use newtonsoft json
services.AddControllers().AddNewtonsoftJson();
services.AddControllersWithViews().AddNewtonsoftJson();
services.AddRazorPages().AddNewtonsoftJson();