Json.NET具有
JsonPropertyAttribute允许您指定JSON属性名称的名称,因此您的代码应为:
public class TeamScore{ [JsonProperty("eighty_min_score")] public string EightyMinScore { get; set; } [JsonProperty("home_or_away")] public string HomeOrAway { get; set; } [JsonProperty("score ")] public string Score { get; set; } [JsonProperty("team_id")] public string TeamId { get; set; }}public class Team{ public string v1 { get; set; } [JsonProperty("attributes")] public TeamScore TeamScores { get; set; }}public class RootObject{ public List<Team> Team { get; set; }}文档:
序列化属性



