{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/Swish/issues/59","repository_url":"https://api.github.com/repos/thoughtbot/Swish","labels_url":"https://api.github.com/repos/thoughtbot/Swish/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/Swish/issues/59/comments","events_url":"https://api.github.com/repos/thoughtbot/Swish/issues/59/events","html_url":"https://github.com/thoughtbot/Swish/pull/59","id":130380995,"number":59,"title":"Allow top level arrays in jsonPayload","user":{"login":"sidraval","id":3432639,"avatar_url":"https://avatars.githubusercontent.com/u/3432639?v=3","gravatar_id":"","url":"https://api.github.com/users/sidraval","html_url":"https://github.com/sidraval","followers_url":"https://api.github.com/users/sidraval/followers","following_url":"https://api.github.com/users/sidraval/following{/other_user}","gists_url":"https://api.github.com/users/sidraval/gists{/gist_id}","starred_url":"https://api.github.com/users/sidraval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidraval/subscriptions","organizations_url":"https://api.github.com/users/sidraval/orgs","repos_url":"https://api.github.com/users/sidraval/repos","events_url":"https://api.github.com/users/sidraval/events{/privacy}","received_events_url":"https://api.github.com/users/sidraval/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-01T14:51:49Z","updated_at":"2016-02-08T22:14:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thoughtbot/Swish/pulls/59","html_url":"https://github.com/thoughtbot/Swish/pull/59","diff_url":"https://github.com/thoughtbot/Swish/pull/59.diff","patch_url":"https://github.com/thoughtbot/Swish/pull/59.patch"},"body":"* `jsonPayload` now returns type `AnyObject?`, expecting the user to\r\n  type cast appropriately\r\n\r\nDamian and I were working on this, and came up this.\r\n\r\nWhile `AnyObject?` isn't ideal, our thoughts are that once the end user sets `.jsonPayload = ...`, they probably won't have a reason to fetch/manipulate it afterward.\r\n\r\nAnother solution we considered was a SwishRequest, that contained both the `NSMutableURLRequest` and a `JSONPayload` enum that had cases for arrays and dictionaries. This added a lot of overhead in code in exchange for no gain, as far as we could tell."},"comment":{"url":"https://api.github.com/repos/thoughtbot/Swish/issues/comments/181593245","html_url":"https://github.com/thoughtbot/Swish/pull/59#issuecomment-181593245","issue_url":"https://api.github.com/repos/thoughtbot/Swish/issues/59","id":181593245,"user":{"login":"gilesvangruisen","id":1256189,"avatar_url":"https://avatars.githubusercontent.com/u/1256189?v=3","gravatar_id":"","url":"https://api.github.com/users/gilesvangruisen","html_url":"https://github.com/gilesvangruisen","followers_url":"https://api.github.com/users/gilesvangruisen/followers","following_url":"https://api.github.com/users/gilesvangruisen/following{/other_user}","gists_url":"https://api.github.com/users/gilesvangruisen/gists{/gist_id}","starred_url":"https://api.github.com/users/gilesvangruisen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gilesvangruisen/subscriptions","organizations_url":"https://api.github.com/users/gilesvangruisen/orgs","repos_url":"https://api.github.com/users/gilesvangruisen/repos","events_url":"https://api.github.com/users/gilesvangruisen/events{/privacy}","received_events_url":"https://api.github.com/users/gilesvangruisen/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T22:14:38Z","updated_at":"2016-02-08T22:14:38Z","body":"Agree with Gordon re: removing optionality. Otherwise, looks good :+1: "}}