{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/Anviking/Decodable/pulls/18","id":42346688,"html_url":"https://github.com/Anviking/Decodable/pull/18","diff_url":"https://github.com/Anviking/Decodable/pull/18.diff","patch_url":"https://github.com/Anviking/Decodable/pull/18.patch","issue_url":"https://api.github.com/repos/Anviking/Decodable/issues/18","number":18,"state":"open","locked":false,"title":"Potentially refactor","user":{"login":"Anviking","id":304423,"avatar_url":"https://avatars.githubusercontent.com/u/304423?v=3","gravatar_id":"","url":"https://api.github.com/users/Anviking","html_url":"https://github.com/Anviking","followers_url":"https://api.github.com/users/Anviking/followers","following_url":"https://api.github.com/users/Anviking/following{/other_user}","gists_url":"https://api.github.com/users/Anviking/gists{/gist_id}","starred_url":"https://api.github.com/users/Anviking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anviking/subscriptions","organizations_url":"https://api.github.com/users/Anviking/orgs","repos_url":"https://api.github.com/users/Anviking/repos","events_url":"https://api.github.com/users/Anviking/events{/privacy}","received_events_url":"https://api.github.com/users/Anviking/received_events","type":"User","site_admin":false},"body":"The current implementation is messy. Each return-type, i.e. `T`, `[T?]` requires a lot of different overloads to work, and is more magical than simplistic, contrary to what I originally was aiming for with this project.\r\n\r\nThe most straight implementation would be simply creating a function like `parse(json: AnyObject, _ path: String...) -> Whatever<T>`.\r\n\r\nPerhaps it really should stay at that, to avoid fooling anyone about how this works.\r\n\r\nBut it could be possible to implement a single `=>`-operator  overload for each `parse`-function-overload. \r\n\r\nIt would require making a key-path-containing `StringLiteralConvirtible` struct, and it would be wierd. But it would not be more confusing than the current implementation, and it would separate the simple from the magical, allowing people to only opt in on the simple if they choose to.\r\n[WIP]\r\n","created_at":"2015-08-13T12:53:55Z","updated_at":"2015-08-13T12:53:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ee207936d152c754dfec10ab489bf3bbe0e8b57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Anviking/Decodable/pulls/18/commits","review_comments_url":"https://api.github.com/repos/Anviking/Decodable/pulls/18/comments","review_comment_url":"https://api.github.com/repos/Anviking/Decodable/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Anviking/Decodable/issues/18/comments","statuses_url":"https://api.github.com/repos/Anviking/Decodable/statuses/760281db94d8c91cc29ac6592dea0507ac30cbae","head":{"label":"Anviking:simplicity","ref":"simplicity","sha":"760281db94d8c91cc29ac6592dea0507ac30cbae","user":{"login":"Anviking","id":304423,"avatar_url":"https://avatars.githubusercontent.com/u/304423?v=3","gravatar_id":"","url":"https://api.github.com/users/Anviking","html_url":"https://github.com/Anviking","followers_url":"https://api.github.com/users/Anviking/followers","following_url":"https://api.github.com/users/Anviking/following{/other_user}","gists_url":"https://api.github.com/users/Anviking/gists{/gist_id}","starred_url":"https://api.github.com/users/Anviking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anviking/subscriptions","organizations_url":"https://api.github.com/users/Anviking/orgs","repos_url":"https://api.github.com/users/Anviking/repos","events_url":"https://api.github.com/users/Anviking/events{/privacy}","received_events_url":"https://api.github.com/users/Anviking/received_events","type":"User","site_admin":false},"repo":{"id":38760458,"name":"Decodable","full_name":"Anviking/Decodable","owner":{"login":"Anviking","id":304423,"avatar_url":"https://avatars.githubusercontent.com/u/304423?v=3","gravatar_id":"","url":"https://api.github.com/users/Anviking","html_url":"https://github.com/Anviking","followers_url":"https://api.github.com/users/Anviking/followers","following_url":"https://api.github.com/users/Anviking/following{/other_user}","gists_url":"https://api.github.com/users/Anviking/gists{/gist_id}","starred_url":"https://api.github.com/users/Anviking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anviking/subscriptions","organizations_url":"https://api.github.com/users/Anviking/orgs","repos_url":"https://api.github.com/users/Anviking/repos","events_url":"https://api.github.com/users/Anviking/events{/privacy}","received_events_url":"https://api.github.com/users/Anviking/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Anviking/Decodable","description":"Swift 2 JSON parsing done (more) right","fork":false,"url":"https://api.github.com/repos/Anviking/Decodable","forks_url":"https://api.github.com/repos/Anviking/Decodable/forks","keys_url":"https://api.github.com/repos/Anviking/Decodable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anviking/Decodable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anviking/Decodable/teams","hooks_url":"https://api.github.com/repos/Anviking/Decodable/hooks","issue_events_url":"https://api.github.com/repos/Anviking/Decodable/issues/events{/number}","events_url":"https://api.github.com/repos/Anviking/Decodable/events","assignees_url":"https://api.github.com/repos/Anviking/Decodable/assignees{/user}","branches_url":"https://api.github.com/repos/Anviking/Decodable/branches{/branch}","tags_url":"https://api.github.com/repos/Anviking/Decodable/tags","blobs_url":"https://api.github.com/repos/Anviking/Decodable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anviking/Decodable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anviking/Decodable/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anviking/Decodable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anviking/Decodable/statuses/{sha}","languages_url":"https://api.github.com/repos/Anviking/Decodable/languages","stargazers_url":"https://api.github.com/repos/Anviking/Decodable/stargazers","contributors_url":"https://api.github.com/repos/Anviking/Decodable/contributors","subscribers_url":"https://api.github.com/repos/Anviking/Decodable/subscribers","subscription_url":"https://api.github.com/repos/Anviking/Decodable/subscription","commits_url":"https://api.github.com/repos/Anviking/Decodable/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anviking/Decodable/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anviking/Decodable/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anviking/Decodable/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anviking/Decodable/contents/{+path}","compare_url":"https://api.github.com/repos/Anviking/Decodable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anviking/Decodable/merges","archive_url":"https://api.github.com/repos/Anviking/Decodable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anviking/Decodable/downloads","issues_url":"https://api.github.com/repos/Anviking/Decodable/issues{/number}","pulls_url":"https://api.github.com/repos/Anviking/Decodable/pulls{/number}","milestones_url":"https://api.github.com/repos/Anviking/Decodable/milestones{/number}","notifications_url":"https://api.github.com/repos/Anviking/Decodable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anviking/Decodable/labels{/name}","releases_url":"https://api.github.com/repos/Anviking/Decodable/releases{/id}","created_at":"2015-07-08T14:48:44Z","updated_at":"2015-08-13T12:33:59Z","pushed_at":"2015-08-13T12:53:55Z","git_url":"git://github.com/Anviking/Decodable.git","ssh_url":"git@github.com:Anviking/Decodable.git","clone_url":"https://github.com/Anviking/Decodable.git","svn_url":"https://github.com/Anviking/Decodable","homepage":"","size":328,"stargazers_count":137,"watchers_count":137,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":137,"default_branch":"master"}},"base":{"label":"Anviking:master","ref":"master","sha":"e1e4f1daac0be0516e7a5e38e492c8349d1c0622","user":{"login":"Anviking","id":304423,"avatar_url":"https://avatars.githubusercontent.com/u/304423?v=3","gravatar_id":"","url":"https://api.github.com/users/Anviking","html_url":"https://github.com/Anviking","followers_url":"https://api.github.com/users/Anviking/followers","following_url":"https://api.github.com/users/Anviking/following{/other_user}","gists_url":"https://api.github.com/users/Anviking/gists{/gist_id}","starred_url":"https://api.github.com/users/Anviking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anviking/subscriptions","organizations_url":"https://api.github.com/users/Anviking/orgs","repos_url":"https://api.github.com/users/Anviking/repos","events_url":"https://api.github.com/users/Anviking/events{/privacy}","received_events_url":"https://api.github.com/users/Anviking/received_events","type":"User","site_admin":false},"repo":{"id":38760458,"name":"Decodable","full_name":"Anviking/Decodable","owner":{"login":"Anviking","id":304423,"avatar_url":"https://avatars.githubusercontent.com/u/304423?v=3","gravatar_id":"","url":"https://api.github.com/users/Anviking","html_url":"https://github.com/Anviking","followers_url":"https://api.github.com/users/Anviking/followers","following_url":"https://api.github.com/users/Anviking/following{/other_user}","gists_url":"https://api.github.com/users/Anviking/gists{/gist_id}","starred_url":"https://api.github.com/users/Anviking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anviking/subscriptions","organizations_url":"https://api.github.com/users/Anviking/orgs","repos_url":"https://api.github.com/users/Anviking/repos","events_url":"https://api.github.com/users/Anviking/events{/privacy}","received_events_url":"https://api.github.com/users/Anviking/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Anviking/Decodable","description":"Swift 2 JSON parsing done (more) right","fork":false,"url":"https://api.github.com/repos/Anviking/Decodable","forks_url":"https://api.github.com/repos/Anviking/Decodable/forks","keys_url":"https://api.github.com/repos/Anviking/Decodable/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anviking/Decodable/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anviking/Decodable/teams","hooks_url":"https://api.github.com/repos/Anviking/Decodable/hooks","issue_events_url":"https://api.github.com/repos/Anviking/Decodable/issues/events{/number}","events_url":"https://api.github.com/repos/Anviking/Decodable/events","assignees_url":"https://api.github.com/repos/Anviking/Decodable/assignees{/user}","branches_url":"https://api.github.com/repos/Anviking/Decodable/branches{/branch}","tags_url":"https://api.github.com/repos/Anviking/Decodable/tags","blobs_url":"https://api.github.com/repos/Anviking/Decodable/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anviking/Decodable/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anviking/Decodable/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anviking/Decodable/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anviking/Decodable/statuses/{sha}","languages_url":"https://api.github.com/repos/Anviking/Decodable/languages","stargazers_url":"https://api.github.com/repos/Anviking/Decodable/stargazers","contributors_url":"https://api.github.com/repos/Anviking/Decodable/contributors","subscribers_url":"https://api.github.com/repos/Anviking/Decodable/subscribers","subscription_url":"https://api.github.com/repos/Anviking/Decodable/subscription","commits_url":"https://api.github.com/repos/Anviking/Decodable/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anviking/Decodable/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anviking/Decodable/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anviking/Decodable/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anviking/Decodable/contents/{+path}","compare_url":"https://api.github.com/repos/Anviking/Decodable/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anviking/Decodable/merges","archive_url":"https://api.github.com/repos/Anviking/Decodable/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anviking/Decodable/downloads","issues_url":"https://api.github.com/repos/Anviking/Decodable/issues{/number}","pulls_url":"https://api.github.com/repos/Anviking/Decodable/pulls{/number}","milestones_url":"https://api.github.com/repos/Anviking/Decodable/milestones{/number}","notifications_url":"https://api.github.com/repos/Anviking/Decodable/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anviking/Decodable/labels{/name}","releases_url":"https://api.github.com/repos/Anviking/Decodable/releases{/id}","created_at":"2015-07-08T14:48:44Z","updated_at":"2015-08-13T12:33:59Z","pushed_at":"2015-08-13T12:53:55Z","git_url":"git://github.com/Anviking/Decodable.git","ssh_url":"git@github.com:Anviking/Decodable.git","clone_url":"https://github.com/Anviking/Decodable.git","svn_url":"https://github.com/Anviking/Decodable","homepage":"","size":328,"stargazers_count":137,"watchers_count":137,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":137,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Anviking/Decodable/pulls/18"},"html":{"href":"https://github.com/Anviking/Decodable/pull/18"},"issue":{"href":"https://api.github.com/repos/Anviking/Decodable/issues/18"},"comments":{"href":"https://api.github.com/repos/Anviking/Decodable/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/Anviking/Decodable/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/Anviking/Decodable/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Anviking/Decodable/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/Anviking/Decodable/statuses/760281db94d8c91cc29ac6592dea0507ac30cbae"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":432,"deletions":0,"changed_files":3}}