Last active
August 29, 2015 14:06
-
-
Save simkimsia/56b421cd90842a4c2263 to your computer and use it in GitHub Desktop.
what is properly namespaced JSON response?
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
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? |
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
{ | |
"data": { | |
"Hulk Hogan" : { | |
"name": "Hulk Hogan", | |
"id": "100002" | |
}, | |
"Mick Foley" : { | |
"name": "Mick Foley", | |
"id": "100003" | |
} | |
} | |
} |
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
{ | |
"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