Skip to content

Instantly share code, notes, and snippets.

@mattias-lidman
Created April 21, 2015 19:21
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 mattias-lidman/a2138f546d3e227206be to your computer and use it in GitHub Desktop.
Save mattias-lidman/a2138f546d3e227206be to your computer and use it in GitHub Desktop.
{
"data": [{
"type": "articles",
"id": "1",
"title": "JSON API paints my bikeshed!",
"links": {
"self": "http://example.com/articles/1"
},
"included" :
"author": {
"type": "people",
"id": "9",
"first-name": "Dan",
"last-name": "Gebhardt",
"twitter": "dgeb",
"links": {
"self": "http://example.com/people/9"
}
},
"comments": [
{
"type": "comments",
"id": "5",
"body": "First!",
"links": {
"self": "http://example.com/comments/5"
}
}, {
"type": "comments",
"id": "12",
"body": "I like XML better",
"links": {
"self": "http://example.com/comments/12"
}
}]
}
}
}],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment