{"action":"opened","number":447,"pull_request":{"url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/pulls/447","id":67277014,"html_url":"https://github.com/iOS-Goodies/iOS-Goodies/pull/447","diff_url":"https://github.com/iOS-Goodies/iOS-Goodies/pull/447.diff","patch_url":"https://github.com/iOS-Goodies/iOS-Goodies/pull/447.patch","issue_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/issues/447","number":447,"state":"open","locked":false,"title":"Add JASON","user":{"login":"delba","id":2891970,"avatar_url":"https://avatars.githubusercontent.com/u/2891970?v=3","gravatar_id":"","url":"https://api.github.com/users/delba","html_url":"https://github.com/delba","followers_url":"https://api.github.com/users/delba/followers","following_url":"https://api.github.com/users/delba/following{/other_user}","gists_url":"https://api.github.com/users/delba/gists{/gist_id}","starred_url":"https://api.github.com/users/delba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delba/subscriptions","organizations_url":"https://api.github.com/users/delba/orgs","repos_url":"https://api.github.com/users/delba/repos","events_url":"https://api.github.com/users/delba/events{/privacy}","received_events_url":"https://api.github.com/users/delba/received_events","type":"User","site_admin":false},"body":"Hi everyone,\r\n\r\nThe [README](https://github.com/delba/JASON) is still in progress but will be ready by tomorrow 😉 \r\n \r\n`JASON` is a fast `JSON` parser that comes in two flavors:\r\n- `SwiftyJSON` style (but much [faster](https://github.com/delba/JASON/tree/benchmarks))\r\n- `SwiftyUserDefaults` (cf. this [article](http://radex.io/swift/nsuserdefaults/static/) by radex)\r\n\r\nHere is the second one in action (Dribbble client):\r\n\r\n```swift\r\nextension JSONKeys {\r\n    static let id    = JSONKey<Int>(\"id\")\r\n    static let title = JSONKey<String>(\"title\")\r\n\r\n    static let normalImageURL = JSONKey<NSURL?>(path: \"images\", \"normal\")\r\n    static let hidpiImageURL  = JSONKey<NSURL?>(path: \"images\", \"hidpi\")\r\n\r\n    static let user = JSONKey<JSON>(\"user\")\r\n    static let name = JSONKey<String>(\"name\") \r\n}\r\n```\r\n\r\n```swift\r\nstruct Shot {\r\n    let id: Int\r\n    let title: String\r\n\r\n    var normalImageURL: NSURL!\r\n    var hidpiImageURL: NSURL?\r\n\r\n    let user: User\r\n\r\n    init(_ json: JSON) {\r\n        id    = json[.id]\r\n        title = json[.title]\r\n\r\n        normalImageURL = json[.normalImageURL]\r\n        hidpiImageURL  = json[.hidpiImageURL]\r\n\r\n        user = User(json[.user])\r\n    }\r\n}\r\n```\r\n\r\n```swift\r\nstruct User {\r\n    let id: Int\r\n    let name: String\r\n\r\n    init(_ json: JSON) {\r\n        id   = json[.id]\r\n        name = json[.name]\r\n    }\r\n}\r\n```","created_at":"2016-04-20T23:53:28Z","updated_at":"2016-04-20T23:53:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/pulls/447/commits","review_comments_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/pulls/447/comments","review_comment_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/issues/447/comments","statuses_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/statuses/88aed9fb1df30f3b85e24eeab6c269ee5a3b32e9","head":{"label":"delba:master","ref":"master","sha":"88aed9fb1df30f3b85e24eeab6c269ee5a3b32e9","user":{"login":"delba","id":2891970,"avatar_url":"https://avatars.githubusercontent.com/u/2891970?v=3","gravatar_id":"","url":"https://api.github.com/users/delba","html_url":"https://github.com/delba","followers_url":"https://api.github.com/users/delba/followers","following_url":"https://api.github.com/users/delba/following{/other_user}","gists_url":"https://api.github.com/users/delba/gists{/gist_id}","starred_url":"https://api.github.com/users/delba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delba/subscriptions","organizations_url":"https://api.github.com/users/delba/orgs","repos_url":"https://api.github.com/users/delba/repos","events_url":"https://api.github.com/users/delba/events{/privacy}","received_events_url":"https://api.github.com/users/delba/received_events","type":"User","site_admin":false},"repo":{"id":51907613,"name":"iOS-Goodies","full_name":"delba/iOS-Goodies","owner":{"login":"delba","id":2891970,"avatar_url":"https://avatars.githubusercontent.com/u/2891970?v=3","gravatar_id":"","url":"https://api.github.com/users/delba","html_url":"https://github.com/delba","followers_url":"https://api.github.com/users/delba/followers","following_url":"https://api.github.com/users/delba/following{/other_user}","gists_url":"https://api.github.com/users/delba/gists{/gist_id}","starred_url":"https://api.github.com/users/delba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delba/subscriptions","organizations_url":"https://api.github.com/users/delba/orgs","repos_url":"https://api.github.com/users/delba/repos","events_url":"https://api.github.com/users/delba/events{/privacy}","received_events_url":"https://api.github.com/users/delba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/delba/iOS-Goodies","description":"Your favorite iOS Newsletter, now open source.","fork":true,"url":"https://api.github.com/repos/delba/iOS-Goodies","forks_url":"https://api.github.com/repos/delba/iOS-Goodies/forks","keys_url":"https://api.github.com/repos/delba/iOS-Goodies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/delba/iOS-Goodies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/delba/iOS-Goodies/teams","hooks_url":"https://api.github.com/repos/delba/iOS-Goodies/hooks","issue_events_url":"https://api.github.com/repos/delba/iOS-Goodies/issues/events{/number}","events_url":"https://api.github.com/repos/delba/iOS-Goodies/events","assignees_url":"https://api.github.com/repos/delba/iOS-Goodies/assignees{/user}","branches_url":"https://api.github.com/repos/delba/iOS-Goodies/branches{/branch}","tags_url":"https://api.github.com/repos/delba/iOS-Goodies/tags","blobs_url":"https://api.github.com/repos/delba/iOS-Goodies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/delba/iOS-Goodies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/delba/iOS-Goodies/git/refs{/sha}","trees_url":"https://api.github.com/repos/delba/iOS-Goodies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/delba/iOS-Goodies/statuses/{sha}","languages_url":"https://api.github.com/repos/delba/iOS-Goodies/languages","stargazers_url":"https://api.github.com/repos/delba/iOS-Goodies/stargazers","contributors_url":"https://api.github.com/repos/delba/iOS-Goodies/contributors","subscribers_url":"https://api.github.com/repos/delba/iOS-Goodies/subscribers","subscription_url":"https://api.github.com/repos/delba/iOS-Goodies/subscription","commits_url":"https://api.github.com/repos/delba/iOS-Goodies/commits{/sha}","git_commits_url":"https://api.github.com/repos/delba/iOS-Goodies/git/commits{/sha}","comments_url":"https://api.github.com/repos/delba/iOS-Goodies/comments{/number}","issue_comment_url":"https://api.github.com/repos/delba/iOS-Goodies/issues/comments{/number}","contents_url":"https://api.github.com/repos/delba/iOS-Goodies/contents/{+path}","compare_url":"https://api.github.com/repos/delba/iOS-Goodies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/delba/iOS-Goodies/merges","archive_url":"https://api.github.com/repos/delba/iOS-Goodies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/delba/iOS-Goodies/downloads","issues_url":"https://api.github.com/repos/delba/iOS-Goodies/issues{/number}","pulls_url":"https://api.github.com/repos/delba/iOS-Goodies/pulls{/number}","milestones_url":"https://api.github.com/repos/delba/iOS-Goodies/milestones{/number}","notifications_url":"https://api.github.com/repos/delba/iOS-Goodies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/delba/iOS-Goodies/labels{/name}","releases_url":"https://api.github.com/repos/delba/iOS-Goodies/releases{/id}","deployments_url":"https://api.github.com/repos/delba/iOS-Goodies/deployments","created_at":"2016-02-17T08:40:24Z","updated_at":"2016-02-17T07:05:05Z","pushed_at":"2016-04-20T23:24:09Z","git_url":"git://github.com/delba/iOS-Goodies.git","ssh_url":"git@github.com:delba/iOS-Goodies.git","clone_url":"https://github.com/delba/iOS-Goodies.git","svn_url":"https://github.com/delba/iOS-Goodies","homepage":"http://ios-goodies.com","size":820,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iOS-Goodies:master","ref":"master","sha":"ef226bfcefe281207fc157fea84b4464a7b4d37f","user":{"login":"iOS-Goodies","id":11159512,"avatar_url":"https://avatars.githubusercontent.com/u/11159512?v=3","gravatar_id":"","url":"https://api.github.com/users/iOS-Goodies","html_url":"https://github.com/iOS-Goodies","followers_url":"https://api.github.com/users/iOS-Goodies/followers","following_url":"https://api.github.com/users/iOS-Goodies/following{/other_user}","gists_url":"https://api.github.com/users/iOS-Goodies/gists{/gist_id}","starred_url":"https://api.github.com/users/iOS-Goodies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iOS-Goodies/subscriptions","organizations_url":"https://api.github.com/users/iOS-Goodies/orgs","repos_url":"https://api.github.com/users/iOS-Goodies/repos","events_url":"https://api.github.com/users/iOS-Goodies/events{/privacy}","received_events_url":"https://api.github.com/users/iOS-Goodies/received_events","type":"Organization","site_admin":false},"repo":{"id":31210625,"name":"iOS-Goodies","full_name":"iOS-Goodies/iOS-Goodies","owner":{"login":"iOS-Goodies","id":11159512,"avatar_url":"https://avatars.githubusercontent.com/u/11159512?v=3","gravatar_id":"","url":"https://api.github.com/users/iOS-Goodies","html_url":"https://github.com/iOS-Goodies","followers_url":"https://api.github.com/users/iOS-Goodies/followers","following_url":"https://api.github.com/users/iOS-Goodies/following{/other_user}","gists_url":"https://api.github.com/users/iOS-Goodies/gists{/gist_id}","starred_url":"https://api.github.com/users/iOS-Goodies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iOS-Goodies/subscriptions","organizations_url":"https://api.github.com/users/iOS-Goodies/orgs","repos_url":"https://api.github.com/users/iOS-Goodies/repos","events_url":"https://api.github.com/users/iOS-Goodies/events{/privacy}","received_events_url":"https://api.github.com/users/iOS-Goodies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iOS-Goodies/iOS-Goodies","description":"Your favorite iOS Newsletter, now open source.","fork":false,"url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies","forks_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/forks","keys_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/teams","hooks_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/hooks","issue_events_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/issues/events{/number}","events_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/events","assignees_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/assignees{/user}","branches_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/branches{/branch}","tags_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/tags","blobs_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/git/refs{/sha}","trees_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/statuses/{sha}","languages_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/languages","stargazers_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/stargazers","contributors_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/contributors","subscribers_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/subscribers","subscription_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/subscription","commits_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/commits{/sha}","git_commits_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/git/commits{/sha}","comments_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/comments{/number}","issue_comment_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/issues/comments{/number}","contents_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/contents/{+path}","compare_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/merges","archive_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/downloads","issues_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/issues{/number}","pulls_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/pulls{/number}","milestones_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/milestones{/number}","notifications_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/labels{/name}","releases_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/releases{/id}","deployments_url":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/deployments","created_at":"2015-02-23T14:07:27Z","updated_at":"2016-04-20T13:43:17Z","pushed_at":"2016-04-20T21:19:34Z","git_url":"git://github.com/iOS-Goodies/iOS-Goodies.git","ssh_url":"git@github.com:iOS-Goodies/iOS-Goodies.git","clone_url":"https://github.com/iOS-Goodies/iOS-Goodies.git","svn_url":"https://github.com/iOS-Goodies/iOS-Goodies","homepage":"http://ios-goodies.com","size":897,"stargazers_count":303,"watchers_count":303,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"open_issues_count":1,"forks":106,"open_issues":1,"watchers":303,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/pulls/447"},"html":{"href":"https://github.com/iOS-Goodies/iOS-Goodies/pull/447"},"issue":{"href":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/issues/447"},"comments":{"href":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/issues/447/comments"},"review_comments":{"href":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/pulls/447/comments"},"review_comment":{"href":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/pulls/447/commits"},"statuses":{"href":"https://api.github.com/repos/iOS-Goodies/iOS-Goodies/statuses/88aed9fb1df30f3b85e24eeab6c269ee5a3b32e9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}