{"action":"created","comment":{"url":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/comments/229955027","pull_request_review_id":170575572,"id":229955027,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTk1NTAyNw==","diff_hunk":"@@ -0,0 +1,25 @@\n+//\n+//  jsonParser.swift\n+//  JSONParser\n+//\n+//  Created by 김장수 on 30/10/2018.\n+//  Copyright © 2018 JK. All rights reserved.\n+//\n+\n+import Foundation\n+\n+struct JSONParser {\n+    // 문자열의 배열을 각 데이터 형태에 따라 갯수를 카운트 & 튜플로 리턴\n+    public func countsOfJSON(from text: String) -> (string: Int, bool: Int, int: Int) {\n+        let texts = text.removeBracket.separateByComma\n+        var nString = 0, nBoolean = 0, nInt = 0\n+        \n+        for element in texts {\n+            if element.isNumeric { nInt += 1 }\n+            if element.isString { nString += 1 }\n+            if element.isBoolean { nBoolean += 1 }\n+        }\n+        \n+        return (string: nString, bool: nBoolean, int: nInt)","path":"JSONParser/JSONParser/jsonParser.swift","position":23,"original_position":23,"commit_id":"4baac39df65e1365722091357a22c789a3312e56","original_commit_id":"4baac39df65e1365722091357a22c789a3312e56","user":{"login":"godrm","id":278988,"node_id":"MDQ6VXNlcjI3ODk4OA==","avatar_url":"https://avatars1.githubusercontent.com/u/278988?v=4","gravatar_id":"","url":"https://api.github.com/users/godrm","html_url":"https://github.com/godrm","followers_url":"https://api.github.com/users/godrm/followers","following_url":"https://api.github.com/users/godrm/following{/other_user}","gists_url":"https://api.github.com/users/godrm/gists{/gist_id}","starred_url":"https://api.github.com/users/godrm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godrm/subscriptions","organizations_url":"https://api.github.com/users/godrm/orgs","repos_url":"https://api.github.com/users/godrm/repos","events_url":"https://api.github.com/users/godrm/events{/privacy}","received_events_url":"https://api.github.com/users/godrm/received_events","type":"User","site_admin":false},"body":"이번 미션에서 가장 중요한 것은 JSON 데이터 구조중에서 Array를 스위프트 데이터 타입을 가지는 배열로 만드는 겁니다.\r\n사다리게임으로 치면 사다리게임에 대한 추상화된 객체가 있어야 하는거죠.\r\n그 내용중에서 개수를 카운트해서 출력하는 것은 부가적인 기능입니다. 이 부분을 확인해보세요! ","created_at":"2018-11-01T07:06:09Z","updated_at":"2018-11-01T07:06:09Z","html_url":"https://github.com/code-squad/swift-jsonparser/pull/93#discussion_r229955027","pull_request_url":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/93","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/comments/229955027"},"html":{"href":"https://github.com/code-squad/swift-jsonparser/pull/93#discussion_r229955027"},"pull_request":{"href":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/93","id":226901888,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2OTAxODg4","html_url":"https://github.com/code-squad/swift-jsonparser/pull/93","diff_url":"https://github.com/code-squad/swift-jsonparser/pull/93.diff","patch_url":"https://github.com/code-squad/swift-jsonparser/pull/93.patch","issue_url":"https://api.github.com/repos/code-squad/swift-jsonparser/issues/93","number":93,"state":"open","locked":false,"title":"Billy - JSON 문자열 분석기 step1","user":{"login":"jumpingbilly","id":41963143,"node_id":"MDQ6VXNlcjQxOTYzMTQz","avatar_url":"https://avatars2.githubusercontent.com/u/41963143?v=4","gravatar_id":"","url":"https://api.github.com/users/jumpingbilly","html_url":"https://github.com/jumpingbilly","followers_url":"https://api.github.com/users/jumpingbilly/followers","following_url":"https://api.github.com/users/jumpingbilly/following{/other_user}","gists_url":"https://api.github.com/users/jumpingbilly/gists{/gist_id}","starred_url":"https://api.github.com/users/jumpingbilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jumpingbilly/subscriptions","organizations_url":"https://api.github.com/users/jumpingbilly/orgs","repos_url":"https://api.github.com/users/jumpingbilly/repos","events_url":"https://api.github.com/users/jumpingbilly/events{/privacy}","received_events_url":"https://api.github.com/users/jumpingbilly/received_events","type":"User","site_admin":false},"body":"### 작업내용\r\n\r\n- 요구 사항에 맞게 객체를 나누고 구현해봤습니다.\r\n- 입력 ```InputView```, 출력 ```OutputView``` 객체 구현\r\n- extension ```TextExtension```, 에러 처리 ```TextValidator``` 객체 구현\r\n- ```JSONParser``` 객체 (JSON 문자열 분석) 구현","created_at":"2018-10-30T12:28:12Z","updated_at":"2018-11-01T07:06:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cba507c0211b9b747886f39905273f28f5fb0a9c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/93/commits","review_comments_url":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/93/comments","review_comment_url":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-squad/swift-jsonparser/issues/93/comments","statuses_url":"https://api.github.com/repos/code-squad/swift-jsonparser/statuses/4baac39df65e1365722091357a22c789a3312e56","head":{"label":"jumpingbilly:jumpingbilly-step1","ref":"jumpingbilly-step1","sha":"4baac39df65e1365722091357a22c789a3312e56","user":{"login":"jumpingbilly","id":41963143,"node_id":"MDQ6VXNlcjQxOTYzMTQz","avatar_url":"https://avatars2.githubusercontent.com/u/41963143?v=4","gravatar_id":"","url":"https://api.github.com/users/jumpingbilly","html_url":"https://github.com/jumpingbilly","followers_url":"https://api.github.com/users/jumpingbilly/followers","following_url":"https://api.github.com/users/jumpingbilly/following{/other_user}","gists_url":"https://api.github.com/users/jumpingbilly/gists{/gist_id}","starred_url":"https://api.github.com/users/jumpingbilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jumpingbilly/subscriptions","organizations_url":"https://api.github.com/users/jumpingbilly/orgs","repos_url":"https://api.github.com/users/jumpingbilly/repos","events_url":"https://api.github.com/users/jumpingbilly/events{/privacy}","received_events_url":"https://api.github.com/users/jumpingbilly/received_events","type":"User","site_admin":false},"repo":{"id":155306698,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUzMDY2OTg=","name":"swift-jsonparser","full_name":"jumpingbilly/swift-jsonparser","private":false,"owner":{"login":"jumpingbilly","id":41963143,"node_id":"MDQ6VXNlcjQxOTYzMTQz","avatar_url":"https://avatars2.githubusercontent.com/u/41963143?v=4","gravatar_id":"","url":"https://api.github.com/users/jumpingbilly","html_url":"https://github.com/jumpingbilly","followers_url":"https://api.github.com/users/jumpingbilly/followers","following_url":"https://api.github.com/users/jumpingbilly/following{/other_user}","gists_url":"https://api.github.com/users/jumpingbilly/gists{/gist_id}","starred_url":"https://api.github.com/users/jumpingbilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jumpingbilly/subscriptions","organizations_url":"https://api.github.com/users/jumpingbilly/orgs","repos_url":"https://api.github.com/users/jumpingbilly/repos","events_url":"https://api.github.com/users/jumpingbilly/events{/privacy}","received_events_url":"https://api.github.com/users/jumpingbilly/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jumpingbilly/swift-jsonparser","description":"JSON문자열 분석기 저장소","fork":true,"url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser","forks_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/forks","keys_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/teams","hooks_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/hooks","issue_events_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/issues/events{/number}","events_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/events","assignees_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/assignees{/user}","branches_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/branches{/branch}","tags_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/tags","blobs_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/git/refs{/sha}","trees_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/statuses/{sha}","languages_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/languages","stargazers_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/stargazers","contributors_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/contributors","subscribers_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/subscribers","subscription_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/subscription","commits_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/commits{/sha}","git_commits_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/git/commits{/sha}","comments_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/comments{/number}","issue_comment_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/issues/comments{/number}","contents_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/contents/{+path}","compare_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/merges","archive_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/downloads","issues_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/issues{/number}","pulls_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/pulls{/number}","milestones_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/milestones{/number}","notifications_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/labels{/name}","releases_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/releases{/id}","deployments_url":"https://api.github.com/repos/jumpingbilly/swift-jsonparser/deployments","created_at":"2018-10-30T01:39:26Z","updated_at":"2018-10-30T01:39:28Z","pushed_at":"2018-10-30T12:24:32Z","git_url":"git://github.com/jumpingbilly/swift-jsonparser.git","ssh_url":"git@github.com:jumpingbilly/swift-jsonparser.git","clone_url":"https://github.com/jumpingbilly/swift-jsonparser.git","svn_url":"https://github.com/jumpingbilly/swift-jsonparser","homepage":null,"size":1218,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"code-squad:jumpingbilly","ref":"jumpingbilly","sha":"20739b87bd490d721acb4b7995f0b72b18426ba7","user":{"login":"code-squad","id":22832280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODMyMjgw","avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"repo":{"id":106374447,"node_id":"MDEwOlJlcG9zaXRvcnkxMDYzNzQ0NDc=","name":"swift-jsonparser","full_name":"code-squad/swift-jsonparser","private":false,"owner":{"login":"code-squad","id":22832280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODMyMjgw","avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/code-squad/swift-jsonparser","description":"JSON문자열 분석기 저장소","fork":false,"url":"https://api.github.com/repos/code-squad/swift-jsonparser","forks_url":"https://api.github.com/repos/code-squad/swift-jsonparser/forks","keys_url":"https://api.github.com/repos/code-squad/swift-jsonparser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-squad/swift-jsonparser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-squad/swift-jsonparser/teams","hooks_url":"https://api.github.com/repos/code-squad/swift-jsonparser/hooks","issue_events_url":"https://api.github.com/repos/code-squad/swift-jsonparser/issues/events{/number}","events_url":"https://api.github.com/repos/code-squad/swift-jsonparser/events","assignees_url":"https://api.github.com/repos/code-squad/swift-jsonparser/assignees{/user}","branches_url":"https://api.github.com/repos/code-squad/swift-jsonparser/branches{/branch}","tags_url":"https://api.github.com/repos/code-squad/swift-jsonparser/tags","blobs_url":"https://api.github.com/repos/code-squad/swift-jsonparser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-squad/swift-jsonparser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-squad/swift-jsonparser/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-squad/swift-jsonparser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-squad/swift-jsonparser/statuses/{sha}","languages_url":"https://api.github.com/repos/code-squad/swift-jsonparser/languages","stargazers_url":"https://api.github.com/repos/code-squad/swift-jsonparser/stargazers","contributors_url":"https://api.github.com/repos/code-squad/swift-jsonparser/contributors","subscribers_url":"https://api.github.com/repos/code-squad/swift-jsonparser/subscribers","subscription_url":"https://api.github.com/repos/code-squad/swift-jsonparser/subscription","commits_url":"https://api.github.com/repos/code-squad/swift-jsonparser/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-squad/swift-jsonparser/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-squad/swift-jsonparser/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-squad/swift-jsonparser/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-squad/swift-jsonparser/contents/{+path}","compare_url":"https://api.github.com/repos/code-squad/swift-jsonparser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-squad/swift-jsonparser/merges","archive_url":"https://api.github.com/repos/code-squad/swift-jsonparser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-squad/swift-jsonparser/downloads","issues_url":"https://api.github.com/repos/code-squad/swift-jsonparser/issues{/number}","pulls_url":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls{/number}","milestones_url":"https://api.github.com/repos/code-squad/swift-jsonparser/milestones{/number}","notifications_url":"https://api.github.com/repos/code-squad/swift-jsonparser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-squad/swift-jsonparser/labels{/name}","releases_url":"https://api.github.com/repos/code-squad/swift-jsonparser/releases{/id}","deployments_url":"https://api.github.com/repos/code-squad/swift-jsonparser/deployments","created_at":"2017-10-10T06:00:00Z","updated_at":"2018-08-18T03:08:11Z","pushed_at":"2018-10-31T06:01:52Z","git_url":"git://github.com/code-squad/swift-jsonparser.git","ssh_url":"git@github.com:code-squad/swift-jsonparser.git","clone_url":"https://github.com/code-squad/swift-jsonparser.git","svn_url":"https://github.com/code-squad/swift-jsonparser","homepage":null,"size":1215,"stargazers_count":2,"watchers_count":2,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":21,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/93"},"html":{"href":"https://github.com/code-squad/swift-jsonparser/pull/93"},"issue":{"href":"https://api.github.com/repos/code-squad/swift-jsonparser/issues/93"},"comments":{"href":"https://api.github.com/repos/code-squad/swift-jsonparser/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-squad/swift-jsonparser/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/code-squad/swift-jsonparser/statuses/4baac39df65e1365722091357a22c789a3312e56"}},"author_association":"NONE"}}
{"actor":{"display_login":"godrm"}}