{"action":"closed","issue":{"url":"https://api.github.com/repos/json-api/json-api/issues/394","labels_url":"https://api.github.com/repos/json-api/json-api/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/json-api/json-api/issues/394/comments","events_url":"https://api.github.com/repos/json-api/json-api/issues/394/events","html_url":"https://github.com/json-api/json-api/issues/394","id":59841322,"number":394,"title":"Clarifying linked resource interlinking","user":{"login":"dkubb","id":133,"avatar_url":"https://avatars.githubusercontent.com/u/133?v=3","gravatar_id":"","url":"https://api.github.com/users/dkubb","html_url":"https://github.com/dkubb","followers_url":"https://api.github.com/users/dkubb/followers","following_url":"https://api.github.com/users/dkubb/following{/other_user}","gists_url":"https://api.github.com/users/dkubb/gists{/gist_id}","starred_url":"https://api.github.com/users/dkubb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkubb/subscriptions","organizations_url":"https://api.github.com/users/dkubb/orgs","repos_url":"https://api.github.com/users/dkubb/repos","events_url":"https://api.github.com/users/dkubb/events{/privacy}","received_events_url":"https://api.github.com/users/dkubb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/json-api/json-api/labels/bling","name":"bling","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-04T18:41:08Z","updated_at":"2015-06-29T10:44:17Z","closed_at":"2015-06-29T10:44:17Z","body":"I have a few cases where my data links to a resource which is loaded in the linked section. Some of them have relationships between each other and I was wondering if it was compliant with the spec to do something like this:\r\n\r\n```json\r\n{  \r\n  ...\r\n\r\n  \"linked\": [  \r\n    {  \r\n      \"type\": \"people\",\r\n      \"id\": \"1\",\r\n      \"first-name\": \"Jon\",\r\n      \"last-name\": \"Doe\",\r\n      \"links\": {  \r\n        \"self\": \"http://example.com/people/1\",\r\n        \"employer\": {  \r\n          \"type\": \"people\",\r\n          \"id\": 2\r\n        }\r\n      }\r\n    },\r\n    {  \r\n      \"type\": \"people\",\r\n      \"id\": \"2\",\r\n      \"first-name\": \"Jane\",\r\n      \"last-name\": \"Doe\",\r\n      \"links\": {  \r\n        \"self\": \"http://example.com/people/2\",\r\n        \"employees\": {  \r\n          \"type\": \"people\",\r\n          \"ids\": [1]\r\n        }\r\n      }\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nNone of the examples of `linked` show the resources linking to each other."}}