json序列指定名称

class jsonModel
{
public string md5 { get; set; }
public object report { get; set; }
public string @version { get; set; }
[JsonProperty(PropertyName = "@timestamp")]
public string @timestamp { get; set; }
/// <summary>
/// 危险等级
/// </summary>
public string behaviors_grade { get; set; }
}

posted on 2016-05-09 16:12  水行者  阅读(837)  评论(0编辑  收藏  举报

导航