Skip to content

Instantly share code, notes, and snippets.

@berb
Created August 9, 2011 08:22
Show Gist options
  • Save berb/1133601 to your computer and use it in GitHub Desktop.
Save berb/1133601 to your computer and use it in GitHub Desktop.
JSON Example with Link Relations
{
"blogpost":{
"link":{
"rel":"self",
"href":"http://blog/post/4711"
},
"author":{
"name":"Bob",
"link":{
"rel":"???",
"href":"http://author/uri"
}
},
"title":"foobar",
"content":"A long article here…",
"comments":[
{
"comment":"great article",
"link":{
"rel":"???",
"href":"http://blog/post/4711/comment/1"
},
"author":{
"name":"John Doe",
"link":{
"rel":"???",
"href":"http://author/uri"
}
}
}
],
"tags":[
{
"value":"foo",
"link":{
"rel":"???",
"href":"http://blog/post/4711/tag/foo"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment