Created
June 11, 2014 13:56
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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