{"action":"created","comment":{"url":"https://api.github.com/repos/Samsung/iotjs/pulls/comments/151930232","pull_request_review_id":77713363,"id":151930232,"diff_hunk":"@@ -189,7 +189,15 @@ iotjs_module_t.load = function(id, parent) {\n \n   module.filename = modPath;\n   module.dirs = [modPath.substring(0, modPath.lastIndexOf('/') + 1)];\n-  module.compile();\n+\n+  var ext = modPath.substr(modPath.lastIndexOf('.') + 1);\n+\n+  if(ext === 'js') {\n+    module.compile();\n+  } else if(ext === 'json') {","path":"src/js/module.js","position":null,"original_position":10,"commit_id":"6c3fe9c8117e6ac4761da20a3667243c1f1747f1","original_commit_id":"3d942ef33605d43ec174f37136726232fca83675","user":{"login":"daeyeon","id":6630703,"avatar_url":"https://avatars0.githubusercontent.com/u/6630703?v=4","gravatar_id":"","url":"https://api.github.com/users/daeyeon","html_url":"https://github.com/daeyeon","followers_url":"https://api.github.com/users/daeyeon/followers","following_url":"https://api.github.com/users/daeyeon/following{/other_user}","gists_url":"https://api.github.com/users/daeyeon/gists{/gist_id}","starred_url":"https://api.github.com/users/daeyeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daeyeon/subscriptions","organizations_url":"https://api.github.com/users/daeyeon/orgs","repos_url":"https://api.github.com/users/daeyeon/repos","events_url":"https://api.github.com/users/daeyeon/events{/privacy}","received_events_url":"https://api.github.com/users/daeyeon/received_events","type":"User","site_admin":false},"body":"done.","created_at":"2017-11-20T08:53:40Z","updated_at":"2017-11-20T08:53:40Z","html_url":"https://github.com/Samsung/iotjs/pull/1314#discussion_r151930232","pull_request_url":"https://api.github.com/repos/Samsung/iotjs/pulls/1314","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Samsung/iotjs/pulls/comments/151930232"},"html":{"href":"https://github.com/Samsung/iotjs/pull/1314#discussion_r151930232"},"pull_request":{"href":"https://api.github.com/repos/Samsung/iotjs/pulls/1314"}},"in_reply_to_id":151913773},"pull_request":{"url":"https://api.github.com/repos/Samsung/iotjs/pulls/1314","id":153544255,"html_url":"https://github.com/Samsung/iotjs/pull/1314","diff_url":"https://github.com/Samsung/iotjs/pull/1314.diff","patch_url":"https://github.com/Samsung/iotjs/pull/1314.patch","issue_url":"https://api.github.com/repos/Samsung/iotjs/issues/1314","number":1314,"state":"open","locked":false,"title":"Support loading json files","user":{"login":"daeyeon","id":6630703,"avatar_url":"https://avatars0.githubusercontent.com/u/6630703?v=4","gravatar_id":"","url":"https://api.github.com/users/daeyeon","html_url":"https://github.com/daeyeon","followers_url":"https://api.github.com/users/daeyeon/followers","following_url":"https://api.github.com/users/daeyeon/following{/other_user}","gists_url":"https://api.github.com/users/daeyeon/gists{/gist_id}","starred_url":"https://api.github.com/users/daeyeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daeyeon/subscriptions","organizations_url":"https://api.github.com/users/daeyeon/orgs","repos_url":"https://api.github.com/users/daeyeon/repos","events_url":"https://api.github.com/users/daeyeon/events{/privacy}","received_events_url":"https://api.github.com/users/daeyeon/received_events","type":"User","site_admin":false},"body":"IoT.js-DCO-1.0-Signed-off-by: Daeyeon Jeong daeyeon.jeong@samsung.com","created_at":"2017-11-20T04:55:19Z","updated_at":"2017-11-20T08:53:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"891b352ffcfa7497e6416c4a4e8265b2db666d63","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Samsung/iotjs/pulls/1314/commits","review_comments_url":"https://api.github.com/repos/Samsung/iotjs/pulls/1314/comments","review_comment_url":"https://api.github.com/repos/Samsung/iotjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Samsung/iotjs/issues/1314/comments","statuses_url":"https://api.github.com/repos/Samsung/iotjs/statuses/6c3fe9c8117e6ac4761da20a3667243c1f1747f1","head":{"label":"daeyeon:support-loading-json","ref":"support-loading-json","sha":"6c3fe9c8117e6ac4761da20a3667243c1f1747f1","user":{"login":"daeyeon","id":6630703,"avatar_url":"https://avatars0.githubusercontent.com/u/6630703?v=4","gravatar_id":"","url":"https://api.github.com/users/daeyeon","html_url":"https://github.com/daeyeon","followers_url":"https://api.github.com/users/daeyeon/followers","following_url":"https://api.github.com/users/daeyeon/following{/other_user}","gists_url":"https://api.github.com/users/daeyeon/gists{/gist_id}","starred_url":"https://api.github.com/users/daeyeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daeyeon/subscriptions","organizations_url":"https://api.github.com/users/daeyeon/orgs","repos_url":"https://api.github.com/users/daeyeon/repos","events_url":"https://api.github.com/users/daeyeon/events{/privacy}","received_events_url":"https://api.github.com/users/daeyeon/received_events","type":"User","site_admin":false},"repo":{"id":85912588,"name":"iotjs","full_name":"daeyeon/iotjs","owner":{"login":"daeyeon","id":6630703,"avatar_url":"https://avatars0.githubusercontent.com/u/6630703?v=4","gravatar_id":"","url":"https://api.github.com/users/daeyeon","html_url":"https://github.com/daeyeon","followers_url":"https://api.github.com/users/daeyeon/followers","following_url":"https://api.github.com/users/daeyeon/following{/other_user}","gists_url":"https://api.github.com/users/daeyeon/gists{/gist_id}","starred_url":"https://api.github.com/users/daeyeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daeyeon/subscriptions","organizations_url":"https://api.github.com/users/daeyeon/orgs","repos_url":"https://api.github.com/users/daeyeon/repos","events_url":"https://api.github.com/users/daeyeon/events{/privacy}","received_events_url":"https://api.github.com/users/daeyeon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daeyeon/iotjs","description":"Platform for Internet of Things with JavaScript http://www.iotjs.net ","fork":true,"url":"https://api.github.com/repos/daeyeon/iotjs","forks_url":"https://api.github.com/repos/daeyeon/iotjs/forks","keys_url":"https://api.github.com/repos/daeyeon/iotjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daeyeon/iotjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daeyeon/iotjs/teams","hooks_url":"https://api.github.com/repos/daeyeon/iotjs/hooks","issue_events_url":"https://api.github.com/repos/daeyeon/iotjs/issues/events{/number}","events_url":"https://api.github.com/repos/daeyeon/iotjs/events","assignees_url":"https://api.github.com/repos/daeyeon/iotjs/assignees{/user}","branches_url":"https://api.github.com/repos/daeyeon/iotjs/branches{/branch}","tags_url":"https://api.github.com/repos/daeyeon/iotjs/tags","blobs_url":"https://api.github.com/repos/daeyeon/iotjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daeyeon/iotjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daeyeon/iotjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/daeyeon/iotjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daeyeon/iotjs/statuses/{sha}","languages_url":"https://api.github.com/repos/daeyeon/iotjs/languages","stargazers_url":"https://api.github.com/repos/daeyeon/iotjs/stargazers","contributors_url":"https://api.github.com/repos/daeyeon/iotjs/contributors","subscribers_url":"https://api.github.com/repos/daeyeon/iotjs/subscribers","subscription_url":"https://api.github.com/repos/daeyeon/iotjs/subscription","commits_url":"https://api.github.com/repos/daeyeon/iotjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/daeyeon/iotjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/daeyeon/iotjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/daeyeon/iotjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/daeyeon/iotjs/contents/{+path}","compare_url":"https://api.github.com/repos/daeyeon/iotjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daeyeon/iotjs/merges","archive_url":"https://api.github.com/repos/daeyeon/iotjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daeyeon/iotjs/downloads","issues_url":"https://api.github.com/repos/daeyeon/iotjs/issues{/number}","pulls_url":"https://api.github.com/repos/daeyeon/iotjs/pulls{/number}","milestones_url":"https://api.github.com/repos/daeyeon/iotjs/milestones{/number}","notifications_url":"https://api.github.com/repos/daeyeon/iotjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daeyeon/iotjs/labels{/name}","releases_url":"https://api.github.com/repos/daeyeon/iotjs/releases{/id}","deployments_url":"https://api.github.com/repos/daeyeon/iotjs/deployments","created_at":"2017-03-23T05:58:46Z","updated_at":"2017-05-15T08:07:13Z","pushed_at":"2017-11-20T07:37:08Z","git_url":"git://github.com/daeyeon/iotjs.git","ssh_url":"git@github.com:daeyeon/iotjs.git","clone_url":"https://github.com/daeyeon/iotjs.git","svn_url":"https://github.com/daeyeon/iotjs","homepage":"","size":2725,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Samsung:master","ref":"master","sha":"4906d111a0ea642decb5894b30accd129b067def","user":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"repo":{"id":33589470,"name":"iotjs","full_name":"Samsung/iotjs","owner":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Samsung/iotjs","description":"Platform for Internet of Things with JavaScript http://www.iotjs.net ","fork":false,"url":"https://api.github.com/repos/Samsung/iotjs","forks_url":"https://api.github.com/repos/Samsung/iotjs/forks","keys_url":"https://api.github.com/repos/Samsung/iotjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samsung/iotjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samsung/iotjs/teams","hooks_url":"https://api.github.com/repos/Samsung/iotjs/hooks","issue_events_url":"https://api.github.com/repos/Samsung/iotjs/issues/events{/number}","events_url":"https://api.github.com/repos/Samsung/iotjs/events","assignees_url":"https://api.github.com/repos/Samsung/iotjs/assignees{/user}","branches_url":"https://api.github.com/repos/Samsung/iotjs/branches{/branch}","tags_url":"https://api.github.com/repos/Samsung/iotjs/tags","blobs_url":"https://api.github.com/repos/Samsung/iotjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samsung/iotjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samsung/iotjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samsung/iotjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samsung/iotjs/statuses/{sha}","languages_url":"https://api.github.com/repos/Samsung/iotjs/languages","stargazers_url":"https://api.github.com/repos/Samsung/iotjs/stargazers","contributors_url":"https://api.github.com/repos/Samsung/iotjs/contributors","subscribers_url":"https://api.github.com/repos/Samsung/iotjs/subscribers","subscription_url":"https://api.github.com/repos/Samsung/iotjs/subscription","commits_url":"https://api.github.com/repos/Samsung/iotjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samsung/iotjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samsung/iotjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samsung/iotjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samsung/iotjs/contents/{+path}","compare_url":"https://api.github.com/repos/Samsung/iotjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samsung/iotjs/merges","archive_url":"https://api.github.com/repos/Samsung/iotjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samsung/iotjs/downloads","issues_url":"https://api.github.com/repos/Samsung/iotjs/issues{/number}","pulls_url":"https://api.github.com/repos/Samsung/iotjs/pulls{/number}","milestones_url":"https://api.github.com/repos/Samsung/iotjs/milestones{/number}","notifications_url":"https://api.github.com/repos/Samsung/iotjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samsung/iotjs/labels{/name}","releases_url":"https://api.github.com/repos/Samsung/iotjs/releases{/id}","deployments_url":"https://api.github.com/repos/Samsung/iotjs/deployments","created_at":"2015-04-08T06:41:39Z","updated_at":"2017-11-20T07:25:09Z","pushed_at":"2017-11-20T07:37:10Z","git_url":"git://github.com/Samsung/iotjs.git","ssh_url":"git@github.com:Samsung/iotjs.git","clone_url":"https://github.com/Samsung/iotjs.git","svn_url":"https://github.com/Samsung/iotjs","homepage":"","size":63270,"stargazers_count":1463,"watchers_count":1463,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":273,"mirror_url":null,"archived":false,"open_issues_count":24,"forks":273,"open_issues":24,"watchers":1463,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Samsung/iotjs/pulls/1314"},"html":{"href":"https://github.com/Samsung/iotjs/pull/1314"},"issue":{"href":"https://api.github.com/repos/Samsung/iotjs/issues/1314"},"comments":{"href":"https://api.github.com/repos/Samsung/iotjs/issues/1314/comments"},"review_comments":{"href":"https://api.github.com/repos/Samsung/iotjs/pulls/1314/comments"},"review_comment":{"href":"https://api.github.com/repos/Samsung/iotjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Samsung/iotjs/pulls/1314/commits"},"statuses":{"href":"https://api.github.com/repos/Samsung/iotjs/statuses/6c3fe9c8117e6ac4761da20a3667243c1f1747f1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"daeyeon"}}