(10) 给定比赛统计数据,统计各支球队在整个赛季的进球数,赢、输和平局的分布信息
{
"status": "Played",
"roundId": 4406122,
"gameweek": 38,
"teamsData": {
"676": {
"scoreET": 0,
"coachId": 92894,
"side": "home",
"teamId": 676,
"score": 1,
"scoreP": 0,
"hasFormation": 1,
"formation": {
"bench": [
{
"playerId": 211885,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 4256,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 25701,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 33,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3291,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3359,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 8323,
"ownGoals": "2",
"redCards": "0",
"goals": "0",
"yellowCards": "0"
}
],
"lineup": [
{
"playerId": 286390,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3802,
"ownGoals": "0",
"redCards": "0",
"goals": "1",
"yellowCards": "0"
},
{
"playerId": 3353,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3476,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "75"
},
{
"playerId": 3346,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 222770,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3341,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 15008,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3269,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "72"
},
{
"playerId": 256634,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 7972,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "43"
}
],
"substitutions": [
{
"playerIn": 8323,
"playerOut": 286390,
"minute": 54
},
{
"playerIn": 3359,
"playerOut": 3802,
"minute": 67
},
{
"playerIn": 3291,
"playerOut": 3353,
"minute": 82
}
]
},
"scoreHT": 0
},
"687": {
"scoreET": 0,
"coachId": 355598,
"side": "away",
"teamId": 687,
"score": 0,
"scoreP": 0,
"hasFormation": 1,
"formation": {
"bench": [
{
"playerId": 3677,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 86212,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 279571,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 395114,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3678,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 278289,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3282,
"ownGoals": "2",
"redCards": "0",
"goals": "0",
"yellowCards": "0"
}
],
"lineup": [
{
"playerId": 261127,
"ownGoals": "2",
"redCards": "0",
"goals": "0",
"yellowCards": "53"
},
{
"playerId": 278288,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3680,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 355599,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3667,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3676,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 225996,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3994,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3576,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 40770,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "0"
},
{
"playerId": 3828,
"ownGoals": "0",
"redCards": "0",
"goals": "null",
"yellowCards": "42"
}
],
"substitutions": [
{
"playerIn": 3282,
"playerOut": 261127,
"minute": 63
},
{
"playerIn": 278289,
"playerOut": 278288,
"minute": 71
},
{
"playerIn": 3678,
"playerOut": 3680,
"minute": 89
}
]
},
"scoreHT": 0
}
},
"seasonId": 181144,
"dateutc": "2018-05-20 18:45:00",
"winner": 676,
"venue": "Camp Nou",
"wyId": 2565922,
"label": "Barcelona - Real Sociedad, 1 - 0",
"date": "May 20, 2018 at 8:45:00 PM GMT+2",
"referees": [
{
"refereeId": 398931,
"role": "referee"
},
{
"refereeId": 398916,
"role": "firstAssistant"
},
{
"refereeId": 398961,
"role": "secondAssistant"
},
{
"refereeId": 395391,
"role": "fourthOfficial"
}
],
"duration": "Regular",
"competitionId": 795
},
需要teamsData里的两个三位数球队id和分别的score,谢谢啦
c++ boost库 对json有很好的支持。