asp.net core 3.0 webapi post request returns the http 400

In Asp.net core webapi item 3.0, after sending post request json format, the header in the return error prompts The JSON value could not be converted to

 

Solution:

Microsoft.AspNetCore.Mvc.NewtonsoftJson installation package

Services.AddNewtonsoftJson ConfigureServices added in the ();

 

Guess you like

Origin www.cnblogs.com/xbzhu/p/12104959.html
Recommended