{"action":"created","issue":{"url":"https://api.github.com/repos/Oktavilla/backbone-kinship/issues/6","labels_url":"https://api.github.com/repos/Oktavilla/backbone-kinship/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Oktavilla/backbone-kinship/issues/6/comments","events_url":"https://api.github.com/repos/Oktavilla/backbone-kinship/issues/6/events","html_url":"https://github.com/Oktavilla/backbone-kinship/pull/6","id":90123442,"number":6,"title":"Mirrors Backbones Model.attributes property","user":{"login":"snurra","id":165103,"avatar_url":"https://avatars.githubusercontent.com/u/165103?v=3","gravatar_id":"","url":"https://api.github.com/users/snurra","html_url":"https://github.com/snurra","followers_url":"https://api.github.com/users/snurra/followers","following_url":"https://api.github.com/users/snurra/following{/other_user}","gists_url":"https://api.github.com/users/snurra/gists{/gist_id}","starred_url":"https://api.github.com/users/snurra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snurra/subscriptions","organizations_url":"https://api.github.com/users/snurra/orgs","repos_url":"https://api.github.com/users/snurra/repos","events_url":"https://api.github.com/users/snurra/events{/privacy}","received_events_url":"https://api.github.com/users/snurra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Oktavilla/backbone-kinship/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-22T14:55:04Z","updated_at":"2015-06-23T08:58:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Oktavilla/backbone-kinship/pulls/6","html_url":"https://github.com/Oktavilla/backbone-kinship/pull/6","diff_url":"https://github.com/Oktavilla/backbone-kinship/pull/6.diff","patch_url":"https://github.com/Oktavilla/backbone-kinship/pull/6.patch"},"body":"Backbone relies on `Backbone.Model.attributes` internally for methods like `Backbone.Model.clone` and `Backbone.Model.changedAttributes`. Since we expand all relations to proper models and collections we remove them from the attributes object to avoid complications/confusion - but this also means that their data isn't there when Backbone expects it to be.\r\n\r\nThis PR makes sure that related objects are returned as JSON whenever `Backbone.Model.attributes` is used."},"comment":{"url":"https://api.github.com/repos/Oktavilla/backbone-kinship/issues/comments/114411465","html_url":"https://github.com/Oktavilla/backbone-kinship/pull/6#issuecomment-114411465","issue_url":"https://api.github.com/repos/Oktavilla/backbone-kinship/issues/6","id":114411465,"user":{"login":"martinlissmyr","id":521390,"avatar_url":"https://avatars.githubusercontent.com/u/521390?v=3","gravatar_id":"","url":"https://api.github.com/users/martinlissmyr","html_url":"https://github.com/martinlissmyr","followers_url":"https://api.github.com/users/martinlissmyr/followers","following_url":"https://api.github.com/users/martinlissmyr/following{/other_user}","gists_url":"https://api.github.com/users/martinlissmyr/gists{/gist_id}","starred_url":"https://api.github.com/users/martinlissmyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinlissmyr/subscriptions","organizations_url":"https://api.github.com/users/martinlissmyr/orgs","repos_url":"https://api.github.com/users/martinlissmyr/repos","events_url":"https://api.github.com/users/martinlissmyr/events{/privacy}","received_events_url":"https://api.github.com/users/martinlissmyr/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T08:58:00Z","updated_at":"2015-06-23T08:58:00Z","body":"Github: ![chow](https://cloud.githubusercontent.com/assets/521390/8302455/b1561b3c-1996-11e5-9130-87b1e97c794f.png)\r\n"}}