{"action":"created","issue":{"url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/45","repository_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer","labels_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/45/comments","events_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/45/events","html_url":"https://github.com/SeyZ/jsonapi-serializer/pull/45","id":113735036,"number":45,"title":"[fix] close https://github.com/SeyZ/jsonapi-serializer/issues/41","user":{"login":"sescobb27","id":1157892,"avatar_url":"https://avatars.githubusercontent.com/u/1157892?v=3","gravatar_id":"","url":"https://api.github.com/users/sescobb27","html_url":"https://github.com/sescobb27","followers_url":"https://api.github.com/users/sescobb27/followers","following_url":"https://api.github.com/users/sescobb27/following{/other_user}","gists_url":"https://api.github.com/users/sescobb27/gists{/gist_id}","starred_url":"https://api.github.com/users/sescobb27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sescobb27/subscriptions","organizations_url":"https://api.github.com/users/sescobb27/orgs","repos_url":"https://api.github.com/users/sescobb27/repos","events_url":"https://api.github.com/users/sescobb27/events{/privacy}","received_events_url":"https://api.github.com/users/sescobb27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-28T03:18:33Z","updated_at":"2016-04-25T11:09:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/pulls/45","html_url":"https://github.com/SeyZ/jsonapi-serializer/pull/45","diff_url":"https://github.com/SeyZ/jsonapi-serializer/pull/45.diff","patch_url":"https://github.com/SeyZ/jsonapi-serializer/pull/45.patch"},"body":"[add] add support for plain relationships"},"comment":{"url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/comments/214267287","html_url":"https://github.com/SeyZ/jsonapi-serializer/pull/45#issuecomment-214267287","issue_url":"https://api.github.com/repos/SeyZ/jsonapi-serializer/issues/45","id":214267287,"user":{"login":"jelhan","id":4965703,"avatar_url":"https://avatars.githubusercontent.com/u/4965703?v=3","gravatar_id":"","url":"https://api.github.com/users/jelhan","html_url":"https://github.com/jelhan","followers_url":"https://api.github.com/users/jelhan/followers","following_url":"https://api.github.com/users/jelhan/following{/other_user}","gists_url":"https://api.github.com/users/jelhan/gists{/gist_id}","starred_url":"https://api.github.com/users/jelhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelhan/subscriptions","organizations_url":"https://api.github.com/users/jelhan/orgs","repos_url":"https://api.github.com/users/jelhan/repos","events_url":"https://api.github.com/users/jelhan/events{/privacy}","received_events_url":"https://api.github.com/users/jelhan/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T11:09:42Z","updated_at":"2016-04-25T11:09:42Z","body":"Found another way to achieve my goal.\r\n\r\nA few notes about my use case: My ORM returns a string or number property for one-to relationships which are not populated: \r\n\r\n```\r\n{\r\n  name: 'Jon Doe'\r\n  // one-to relationship to a group model\r\n  group: 3\r\n}\r\n```\r\n\r\nHad problems to get them serialized as relationships. Found that easiest way was to normalize them to an object having id property:\r\n\r\n```\r\n{\r\n  name: 'Jon Doe',\r\n  group: {\r\n    id: 3\r\n  }\r\n}\r\n```"}}