在System.Text.Json中,等价于Newtonsoft.Json的JsonProperty属性是什么?
示例:
示例:
using Newtonsoft.Json;
public class Example
{
[JsonProperty("test2")]
public string Test { get; set; }
}
参考资料: