Skip to content

Instantly share code, notes, and snippets.

@special-character
Last active June 5, 2017 05:08
Show Gist options
  • Save special-character/ee39a8e896e2ecca029b6759cd8410f7 to your computer and use it in GitHub Desktop.
Save special-character/ee39a8e896e2ecca029b6759cd8410f7 to your computer and use it in GitHub Desktop.
An example of normalized JSON for a movie database
{
"movies": {
"byID": {
"movieID1": {
"id": "movieID1",
"Title": "Rogue One",
"Actors": "Felicity Jones, Diego Luna, Alan Tudyk, Donnie Yen"
},
"movieID2": {
"id": "movieID2",
"Title": "Wonder Woman",
"Actors": "Gal Gadot, Robin Wright, David Thewlis, Connie Nielsen"
}
},
"allIDs": [
"movieID1",
"movieID2"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment