Skip to content

Instantly share code, notes, and snippets.

@simkimsia

simkimsia/explanation.txt

Last active Aug 29, 2015
Embed
What would you like to do?
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