//这是骆驼壳
services.AddMvcCore()
.AddJsonOptions(options =>
{
options.SerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
})
如何设置带下划线的小写字母?
{
"just_like_this": "myvalue",
}
答案 0 :(得分:4)