Json序列化自定义属性名称

using Newtonsoft.Json;


[JsonProperty("userName")]
public string UserName { get; set; }

原文地址:https://www.cnblogs.com/sunalong/p/4165026.html