{"action":"opened","issue":{"url":"https://api.github.com/repos/apiaryio/mson/issues/44","labels_url":"https://api.github.com/repos/apiaryio/mson/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/apiaryio/mson/issues/44/comments","events_url":"https://api.github.com/repos/apiaryio/mson/issues/44/events","html_url":"https://github.com/apiaryio/mson/issues/44","id":119271063,"number":44,"title":"MSON parsing bug on apiary.io","user":{"login":"gr2m","id":39992,"avatar_url":"https://avatars.githubusercontent.com/u/39992?v=3","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-28T04:53:05Z","updated_at":"2015-11-28T04:53:05Z","closed_at":null,"body":"```mson\r\n# Data Structures\r\n\r\n## Session Object\r\n- links\r\n  - self: https://example.com/session (enum)\r\n- data\r\n  - id: abc123 (string)\r\n  - type: session (enum)\r\n  - Include Account Relationship\r\n\r\n## Account Relationship Object\r\n- relationships\r\n  - account\r\n    - links\r\n      - related: https://example.com/session/account (enum)\r\n    - data\r\n      - id: abc1234\r\n      - type: account (enum)\r\n```\r\n\r\nParses to \r\n\r\n```json\r\n{\r\n  \"links\": {\r\n    \"self\": \"https://example.com/session\"\r\n  },\r\n  \"data\": {\r\n    \"id\": \"abc123\",\r\n    \"type\": \"session\",\r\n    \"relationships\": {\r\n      \"account\": null,\r\n      \"links\": {\r\n        \"related\": \"https://example.com/session/account\"\r\n      },\r\n      \"data\": {\r\n        \"id\": \"abc1234\",\r\n        \"type\": \"account\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nSee the `\"account\": null` part, that’s odd. I expected \r\n\r\n\r\n```json\r\n{\r\n    \"links\": {\r\n        \"self\": \"https://example.com/session\"\r\n    },\r\n    \"data\": {\r\n        \"id\": \"abc123\",\r\n        \"type\": \"session\",\r\n        \"relationships\": {\r\n            \"account\": {\r\n                \"links\": {\r\n                    \"related\": \"https://example.com/session/account\"\r\n                },\r\n                \"data\": {\r\n                    \"id\": \"abc1234\",\r\n                    \"type\": \"account\"\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n```"}}