{"action":"created","issue":{"url":"https://api.github.com/repos/bos/aeson/issues/242","labels_url":"https://api.github.com/repos/bos/aeson/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/bos/aeson/issues/242/comments","events_url":"https://api.github.com/repos/bos/aeson/issues/242/events","html_url":"https://github.com/bos/aeson/pull/242","id":64760623,"number":242,"title":"Option to unwrap unary record constructors (Fixes #228)","user":{"login":"JPMoresmau","id":122273,"avatar_url":"https://avatars.githubusercontent.com/u/122273?v=3","gravatar_id":"","url":"https://api.github.com/users/JPMoresmau","html_url":"https://github.com/JPMoresmau","followers_url":"https://api.github.com/users/JPMoresmau/followers","following_url":"https://api.github.com/users/JPMoresmau/following{/other_user}","gists_url":"https://api.github.com/users/JPMoresmau/gists{/gist_id}","starred_url":"https://api.github.com/users/JPMoresmau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JPMoresmau/subscriptions","organizations_url":"https://api.github.com/users/JPMoresmau/orgs","repos_url":"https://api.github.com/users/JPMoresmau/repos","events_url":"https://api.github.com/users/JPMoresmau/events{/privacy}","received_events_url":"https://api.github.com/users/JPMoresmau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-27T13:19:14Z","updated_at":"2015-03-27T17:37:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bos/aeson/pulls/242","html_url":"https://github.com/bos/aeson/pull/242","diff_url":"https://github.com/bos/aeson/pull/242.diff","patch_url":"https://github.com/bos/aeson/pull/242.patch"},"body":"This provides an additional option, to unwrap record that have only one field (like newtypes). It does not generate an object but only the value.\r\nQuickchecks tests have been added using the already present Approx newtype, for both TH and GHC Generic functions."},"comment":{"url":"https://api.github.com/repos/bos/aeson/issues/comments/87026410","html_url":"https://github.com/bos/aeson/pull/242#issuecomment-87026410","issue_url":"https://api.github.com/repos/bos/aeson/issues/242","id":87026410,"user":{"login":"basvandijk","id":576355,"avatar_url":"https://avatars.githubusercontent.com/u/576355?v=3","gravatar_id":"","url":"https://api.github.com/users/basvandijk","html_url":"https://github.com/basvandijk","followers_url":"https://api.github.com/users/basvandijk/followers","following_url":"https://api.github.com/users/basvandijk/following{/other_user}","gists_url":"https://api.github.com/users/basvandijk/gists{/gist_id}","starred_url":"https://api.github.com/users/basvandijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basvandijk/subscriptions","organizations_url":"https://api.github.com/users/basvandijk/orgs","repos_url":"https://api.github.com/users/basvandijk/repos","events_url":"https://api.github.com/users/basvandijk/events{/privacy}","received_events_url":"https://api.github.com/users/basvandijk/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T17:37:08Z","updated_at":"2015-03-27T17:37:08Z","body":"Awesome! I just needed this at work.\r\n\r\nI will try to review and merge it this weekend."}}