作者:Sunlight丶丶丶 | 来源:互联网 | 2023-05-19 06:15
在Asp.netcore3.0的webapi项目中,发送json格式的post请求后,返回的header中error提示TheJSONvaluecouldnotbeconverte
在Asp.net core 3.0的webapi项目中,发送json格式的post请求后,返回的header中error提示The JSON value could not be converted to
解决方法:
安装Microsoft.AspNetCore.Mvc.NewtonsoftJson 包
在ConfigureServices中添加services.AddNewtonsoftJson();