Created
August 9, 2011 08:22
-
-
Save berb/1133601 to your computer and use it in GitHub Desktop.
JSON Example with Link Relations
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
{ | |
"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