//json对象命名小驼峰式转换
var json = JsonConvert.SerializeObject(newAccount, Formatting.Indented, new JsonSerializerSettings
{
ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver()
});

Account newAccount2 = JsonConvert.DeserializeObject<Account>(json, new JsonSerializerSettings
{
ContractResolver = new Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver()
});

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2021-04-30
  • 2021-10-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2023-03-30
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案