{"action":"created","comment":{"url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/comments/47829803","id":47829803,"diff_hunk":"@@ -70,7 +74,28 @@ public static Object serialize(Object o) {\n      * @throws InstantiationException\n      */\n     private static JSONObject toJsonObject(Object o) throws Exception {\n-        //implement me\n-        return null;\n+        Class<?> objectClass = o.getClass();\n+        JSONObject jsonObject = new JSONObject();\n+        for(Field field : objectClass.getDeclaredFields()){\n+            field.setAccessible(true);\n+\n+            if (null != field.getAnnotation(Ignore.class)) {\n+                continue;\n+\n+            } else if (simpleTypes.contains(field.getType())) {","path":"src/org/geekhub/json/JsonSerializer.java","position":26,"original_position":26,"commit_id":"08f134e184b0d4a5a705d4a0b121858c14d1cb8b","original_commit_id":"08f134e184b0d4a5a705d4a0b121858c14d1cb8b","user":{"login":"skorichok88","id":5551658,"avatar_url":"https://avatars.githubusercontent.com/u/5551658?v=3","gravatar_id":"","url":"https://api.github.com/users/skorichok88","html_url":"https://github.com/skorichok88","followers_url":"https://api.github.com/users/skorichok88/followers","following_url":"https://api.github.com/users/skorichok88/following{/other_user}","gists_url":"https://api.github.com/users/skorichok88/gists{/gist_id}","starred_url":"https://api.github.com/users/skorichok88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skorichok88/subscriptions","organizations_url":"https://api.github.com/users/skorichok88/orgs","repos_url":"https://api.github.com/users/skorichok88/repos","events_url":"https://api.github.com/users/skorichok88/events{/privacy}","received_events_url":"https://api.github.com/users/skorichok88/received_events","type":"User","site_admin":false},"body":"You already have this check in serialize method.","created_at":"2015-12-16T20:32:26Z","updated_at":"2015-12-16T20:32:26Z","html_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek7/pull/3#discussion_r47829803","pull_request_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/comments/47829803"},"html":{"href":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek7/pull/3#discussion_r47829803"},"pull_request":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/3","id":52264131,"html_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek7/pull/3","diff_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek7/pull/3.diff","patch_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek7/pull/3.patch","issue_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/issues/3","number":3,"state":"open","locked":false,"title":"home work 7","user":{"login":"Oleksjuk","id":6533147,"avatar_url":"https://avatars.githubusercontent.com/u/6533147?v=3","gravatar_id":"","url":"https://api.github.com/users/Oleksjuk","html_url":"https://github.com/Oleksjuk","followers_url":"https://api.github.com/users/Oleksjuk/followers","following_url":"https://api.github.com/users/Oleksjuk/following{/other_user}","gists_url":"https://api.github.com/users/Oleksjuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Oleksjuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oleksjuk/subscriptions","organizations_url":"https://api.github.com/users/Oleksjuk/orgs","repos_url":"https://api.github.com/users/Oleksjuk/repos","events_url":"https://api.github.com/users/Oleksjuk/events{/privacy}","received_events_url":"https://api.github.com/users/Oleksjuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-01T14:29:40Z","updated_at":"2015-12-16T20:32:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0a0251a2a800dcf08fcc60d9f33f23afd3d579b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/3/commits","review_comments_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/3/comments","review_comment_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/issues/3/comments","statuses_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/statuses/08f134e184b0d4a5a705d4a0b121858c14d1cb8b","head":{"label":"Oleksjuk:master","ref":"master","sha":"08f134e184b0d4a5a705d4a0b121858c14d1cb8b","user":{"login":"Oleksjuk","id":6533147,"avatar_url":"https://avatars.githubusercontent.com/u/6533147?v=3","gravatar_id":"","url":"https://api.github.com/users/Oleksjuk","html_url":"https://github.com/Oleksjuk","followers_url":"https://api.github.com/users/Oleksjuk/followers","following_url":"https://api.github.com/users/Oleksjuk/following{/other_user}","gists_url":"https://api.github.com/users/Oleksjuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Oleksjuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oleksjuk/subscriptions","organizations_url":"https://api.github.com/users/Oleksjuk/orgs","repos_url":"https://api.github.com/users/Oleksjuk/repos","events_url":"https://api.github.com/users/Oleksjuk/events{/privacy}","received_events_url":"https://api.github.com/users/Oleksjuk/received_events","type":"User","site_admin":false},"repo":{"id":47184775,"name":"HomeTaskWeek7","full_name":"Oleksjuk/HomeTaskWeek7","owner":{"login":"Oleksjuk","id":6533147,"avatar_url":"https://avatars.githubusercontent.com/u/6533147?v=3","gravatar_id":"","url":"https://api.github.com/users/Oleksjuk","html_url":"https://github.com/Oleksjuk","followers_url":"https://api.github.com/users/Oleksjuk/followers","following_url":"https://api.github.com/users/Oleksjuk/following{/other_user}","gists_url":"https://api.github.com/users/Oleksjuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Oleksjuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oleksjuk/subscriptions","organizations_url":"https://api.github.com/users/Oleksjuk/orgs","repos_url":"https://api.github.com/users/Oleksjuk/repos","events_url":"https://api.github.com/users/Oleksjuk/events{/privacy}","received_events_url":"https://api.github.com/users/Oleksjuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Oleksjuk/HomeTaskWeek7","description":"","fork":true,"url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7","forks_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/forks","keys_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/teams","hooks_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/hooks","issue_events_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/issues/events{/number}","events_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/events","assignees_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/assignees{/user}","branches_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/branches{/branch}","tags_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/tags","blobs_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/git/refs{/sha}","trees_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/statuses/{sha}","languages_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/languages","stargazers_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/stargazers","contributors_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/contributors","subscribers_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/subscribers","subscription_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/subscription","commits_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/commits{/sha}","git_commits_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/git/commits{/sha}","comments_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/comments{/number}","issue_comment_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/issues/comments{/number}","contents_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/contents/{+path}","compare_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/merges","archive_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/downloads","issues_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/issues{/number}","pulls_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/pulls{/number}","milestones_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/milestones{/number}","notifications_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/labels{/name}","releases_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek7/releases{/id}","created_at":"2015-12-01T11:21:04Z","updated_at":"2015-12-01T11:21:04Z","pushed_at":"2015-12-01T14:22:36Z","git_url":"git://github.com/Oleksjuk/HomeTaskWeek7.git","ssh_url":"git@github.com:Oleksjuk/HomeTaskWeek7.git","clone_url":"https://github.com/Oleksjuk/HomeTaskWeek7.git","svn_url":"https://github.com/Oleksjuk/HomeTaskWeek7","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"GeekHubJava4WebThursday:master","ref":"master","sha":"ebe9e9cd070679355b87bcd661de8652abf1d9a4","user":{"login":"GeekHubJava4WebThursday","id":15046934,"avatar_url":"https://avatars.githubusercontent.com/u/15046934?v=3","gravatar_id":"","url":"https://api.github.com/users/GeekHubJava4WebThursday","html_url":"https://github.com/GeekHubJava4WebThursday","followers_url":"https://api.github.com/users/GeekHubJava4WebThursday/followers","following_url":"https://api.github.com/users/GeekHubJava4WebThursday/following{/other_user}","gists_url":"https://api.github.com/users/GeekHubJava4WebThursday/gists{/gist_id}","starred_url":"https://api.github.com/users/GeekHubJava4WebThursday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeekHubJava4WebThursday/subscriptions","organizations_url":"https://api.github.com/users/GeekHubJava4WebThursday/orgs","repos_url":"https://api.github.com/users/GeekHubJava4WebThursday/repos","events_url":"https://api.github.com/users/GeekHubJava4WebThursday/events{/privacy}","received_events_url":"https://api.github.com/users/GeekHubJava4WebThursday/received_events","type":"Organization","site_admin":false},"repo":{"id":47071524,"name":"HomeTaskWeek7","full_name":"GeekHubJava4WebThursday/HomeTaskWeek7","owner":{"login":"GeekHubJava4WebThursday","id":15046934,"avatar_url":"https://avatars.githubusercontent.com/u/15046934?v=3","gravatar_id":"","url":"https://api.github.com/users/GeekHubJava4WebThursday","html_url":"https://github.com/GeekHubJava4WebThursday","followers_url":"https://api.github.com/users/GeekHubJava4WebThursday/followers","following_url":"https://api.github.com/users/GeekHubJava4WebThursday/following{/other_user}","gists_url":"https://api.github.com/users/GeekHubJava4WebThursday/gists{/gist_id}","starred_url":"https://api.github.com/users/GeekHubJava4WebThursday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeekHubJava4WebThursday/subscriptions","organizations_url":"https://api.github.com/users/GeekHubJava4WebThursday/orgs","repos_url":"https://api.github.com/users/GeekHubJava4WebThursday/repos","events_url":"https://api.github.com/users/GeekHubJava4WebThursday/events{/privacy}","received_events_url":"https://api.github.com/users/GeekHubJava4WebThursday/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek7","description":"","fork":false,"url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7","forks_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/forks","keys_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/teams","hooks_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/hooks","issue_events_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/issues/events{/number}","events_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/events","assignees_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/assignees{/user}","branches_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/branches{/branch}","tags_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/tags","blobs_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/statuses/{sha}","languages_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/languages","stargazers_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/stargazers","contributors_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/contributors","subscribers_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/subscribers","subscription_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/subscription","commits_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/contents/{+path}","compare_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/merges","archive_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/downloads","issues_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/issues{/number}","pulls_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls{/number}","milestones_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/milestones{/number}","notifications_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/labels{/name}","releases_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/releases{/id}","created_at":"2015-11-29T16:45:08Z","updated_at":"2015-11-29T16:54:24Z","pushed_at":"2015-12-03T20:20:52Z","git_url":"git://github.com/GeekHubJava4WebThursday/HomeTaskWeek7.git","ssh_url":"git@github.com:GeekHubJava4WebThursday/HomeTaskWeek7.git","clone_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek7.git","svn_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek7","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":6,"forks":14,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/3"},"html":{"href":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek7/pull/3"},"issue":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/issues/3"},"comments":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek7/statuses/08f134e184b0d4a5a705d4a0b121858c14d1cb8b"}}}}