Skip to content

Instantly share code, notes, and snippets.

@TheCatPlusPlus
Last active August 29, 2015 14:01
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 TheCatPlusPlus/903e620ddde93f444a25 to your computer and use it in GitHub Desktop.
Save TheCatPlusPlus/903e620ddde93f444a25 to your computer and use it in GitHub Desktop.
{
"list_of_things": [
"/v0/things/1"
],
"_links": {
"self": "/v0/things",
"next": "/v0/things?page=2"
},
"_embedded": {
"/v0/foos/3": {
"id": 3,
"_links": {
"self": "/v0/foos/3"
}
},
"/v0/things/1": {
"id": 1,
"some_relation": "/v0/foos/3",
"whatever": {
"other_relation": "/v0/bars/6",
"blah_blah": 42
},
"_links": {
"self": "/v0/things/1"
}
}
}
}
@wilx
Copy link

wilx commented May 15, 2014

Missing , after ].

@rightfold
Copy link

Cannot use key–value pairs in arrays.

@thecoshman
Copy link

you "_embedded" object makes no sense, in particular, you seem to have variable keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment