[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
//转化Json对象时变成小写
public class A
{
public string Name{get;set;}
public string Code{get;set;}
}
Json序列化:
{
name:“”,
code:“”
}
[JsonObject(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
//转化Json对象时变成小写
public class A
{
public string Name{get;set;}
public string Code{get;set;}
}
Json序列化:
{
name:“”,
code:“”
}