{"action":"created","issue":{"url":"https://api.github.com/repos/dancingrobot84/purescript-express/issues/52","repository_url":"https://api.github.com/repos/dancingrobot84/purescript-express","labels_url":"https://api.github.com/repos/dancingrobot84/purescript-express/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/dancingrobot84/purescript-express/issues/52/comments","events_url":"https://api.github.com/repos/dancingrobot84/purescript-express/issues/52/events","html_url":"https://github.com/dancingrobot84/purescript-express/pull/52","id":196501767,"number":52,"title":"Add getBody function.","user":{"login":"chexxor","id":843161,"avatar_url":"https://avatars.githubusercontent.com/u/843161?v=3","gravatar_id":"","url":"https://api.github.com/users/chexxor","html_url":"https://github.com/chexxor","followers_url":"https://api.github.com/users/chexxor/followers","following_url":"https://api.github.com/users/chexxor/following{/other_user}","gists_url":"https://api.github.com/users/chexxor/gists{/gist_id}","starred_url":"https://api.github.com/users/chexxor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chexxor/subscriptions","organizations_url":"https://api.github.com/users/chexxor/orgs","repos_url":"https://api.github.com/users/chexxor/repos","events_url":"https://api.github.com/users/chexxor/events{/privacy}","received_events_url":"https://api.github.com/users/chexxor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-19T19:36:29Z","updated_at":"2016-12-20T21:45:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dancingrobot84/purescript-express/pulls/52","html_url":"https://github.com/dancingrobot84/purescript-express/pull/52","diff_url":"https://github.com/dancingrobot84/purescript-express/pull/52.diff","patch_url":"https://github.com/dancingrobot84/purescript-express/pull/52.patch"},"body":"What do you think of this change?\r\n\r\nI want to have a body like this: `\"{name: 'Alfred', salary: 1000}\"`, and I want to parse it into a type like this: `newtype PersonRec = PersonRec { name :: String, salary :: Number}`. I can't use `getBodyParam`, because what param do I get? So I'm forced to use a wrapper object and key, like this: `\"{person: {name: 'Alfred', salary: 1000}}\"`.\r\n\r\nAlso note this difference with `getBodyParam`: I didn't use `eitherToMaybe` because I want to know how the parsing failed, if it did. I got really confused when the value was Nothing - I thought I didn't send the param at all, when I actually did. If this function returned `Either MultipleErrors a`, then I am able to see the parse errors. I think we should do this to `getBodyParam`, also, but it would be a breaking change.\r\n\r\n_update: I fixed the build - needed to kill output directory. Discovered I needed to add import._"},"comment":{"url":"https://api.github.com/repos/dancingrobot84/purescript-express/issues/comments/268368351","html_url":"https://github.com/dancingrobot84/purescript-express/pull/52#issuecomment-268368351","issue_url":"https://api.github.com/repos/dancingrobot84/purescript-express/issues/52","id":268368351,"user":{"login":"chexxor","id":843161,"avatar_url":"https://avatars.githubusercontent.com/u/843161?v=3","gravatar_id":"","url":"https://api.github.com/users/chexxor","html_url":"https://github.com/chexxor","followers_url":"https://api.github.com/users/chexxor/followers","following_url":"https://api.github.com/users/chexxor/following{/other_user}","gists_url":"https://api.github.com/users/chexxor/gists{/gist_id}","starred_url":"https://api.github.com/users/chexxor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chexxor/subscriptions","organizations_url":"https://api.github.com/users/chexxor/orgs","repos_url":"https://api.github.com/users/chexxor/repos","events_url":"https://api.github.com/users/chexxor/events{/privacy}","received_events_url":"https://api.github.com/users/chexxor/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T21:45:32Z","updated_at":"2016-12-20T21:45:32Z","body":"Yeah of course. I'll start on that within the next day or two."}}
{"actor":{"display_login":"chexxor"}}