Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simkimsia/56b421cd90842a4c2263 to your computer and use it in GitHub Desktop.
Save simkimsia/56b421cd90842a4c2263 to your computer and use it in GitHub Desktop.
what is properly namespaced JSON response?
1. I thought namespaced means you need to have the name of the record as the key.
2. If I misunderstood, please feel free to correct me.
3. When you say namespace, do you mean that the namespace is the "data" key?
{
"data": {
"Hulk Hogan" : {
"name": "Hulk Hogan",
"id": "100002"
},
"Mick Foley" : {
"name": "Mick Foley",
"id": "100003"
}
}
}
{
"data": [
{
"name": "Hulk Hogan",
"id": "100002"
},
{
"name": "Mick Foley",
"id": "100003"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment