Newtonsoft.Json 首字母小写 电脑版发表于:2023/11/18 11:31 代码如下: ``` // 首字母小写 JsonSerializerSettings jsonSerializerSettings = new JsonSerializerSettings(); jsonSerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver(); string jsonStr = Newtonsoft.Json.JsonConvert.SerializeObject(articleSearchList, jsonSerializerSettings); ```