JSON serializer Not Working After Upgrade To 3.6.2

前端 未结 1 1172
太阳男子
太阳男子 2020-12-22 04:00

I\'m using ASP.NET Boilerplate for one of my application. The application was on 3.5.0 version of Abp and the template was ASP.NET Core with MVC. I recently upgraded it to 3

相关标签:
1条回答
  • 2020-12-22 04:16

    Set it in Startup.cs > ConfigureServices() method

    services.PostConfigure<MvcJsonOptions>(options =>
    {
        options.SerializerSettings.ContractResolver = new DefaultContractResolver();
    });
    
    0 讨论(0)
提交回复
热议问题