Skip to content

Instantly share code, notes, and snippets.

@mamund
Last active December 29, 2015 14:39
Show Gist options
  • Save mamund/7685221 to your computer and use it in GitHub Desktop.
Save mamund/7685221 to your computer and use it in GitHub Desktop.
difference between expressing properties of a record as structure or data
// structure approach
"item" : {
"id" : "1",
"email" : "[email protected]",
"familyName" : "amundsen",
"givenName" : "mike"
}
// data approach
"item" : [
{"name" : "id", "value" : "1"},
{"name" : "email", "value" : "[email protected]"},
{"name" : "familyName", "value" : "amundsen"},
{"name" : "givenName", "value" : "mike"}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment