Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stuartmyles/ba2250e3b1703045f7ac to your computer and use it in GitHub Desktop.
Save stuartmyles/ba2250e3b1703045f7ac to your computer and use it in GitHub Desktop.
One early experiment to represent a sports event in JSON - this one using "flattened" team and player structures
{
"competionid": "123456",
"eventid": "78901",
"competionname": "FIFA World Cup 2014",
"eventname": "FIFA World Cup 2014 Final",
"competitionstartdate": "2014-12-06",
"compeitionenddate": "2014-13-07",
"eventstartdate": "2014-07-13T19:00Z",
"eventtimeelapsed": "54",
"eventvenueid": "111668",
"eventvenuename": "Big Rio Stadium",
"eventattendence": "80000",
"eventperiod": "2",
"eventstatus": "mid-event",
"eventoutcome": "undecided",
"eventofficials": [
{
"name": "Jeremy",
"nationality": "USA",
"role": "Referee",
"officalid": "2468"
}
],
"players": [
{
"name": "Tores",
"playerid": "2586",
"position": "Striker",
"number": "11",
"memberof": "9753"
},
{
"name": "Paul",
"playerid": "12399",
"position": "Goalie",
"number": "1",
"memberof": "12399"
}
],
"teams": [
{
"name": "Spain",
"teamid": "9753",
"score": "7"
},
{
"name": "Brazil",
"teamid": "8642",
"score": "3"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment