{"action":"created","comment":{"url":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/comments/30487717","id":30487717,"diff_hunk":"@@ -0,0 +1,41 @@\n+#!/usr/bin/env node\n+\n+var program = require('commander');\n+var _ = require('lodash');\n+var assert = require('assert');\n+var JSONStream = require(\"json-stream\");","path":"bin/json2elastic","position":6,"original_position":6,"commit_id":"ff288884cfdc68c771e72e010a47473c953875d7","original_commit_id":"ff288884cfdc68c771e72e010a47473c953875d7","user":{"login":"sunyonggang","id":3059266,"avatar_url":"https://avatars.githubusercontent.com/u/3059266?v=3","gravatar_id":"","url":"https://api.github.com/users/sunyonggang","html_url":"https://github.com/sunyonggang","followers_url":"https://api.github.com/users/sunyonggang/followers","following_url":"https://api.github.com/users/sunyonggang/following{/other_user}","gists_url":"https://api.github.com/users/sunyonggang/gists{/gist_id}","starred_url":"https://api.github.com/users/sunyonggang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunyonggang/subscriptions","organizations_url":"https://api.github.com/users/sunyonggang/orgs","repos_url":"https://api.github.com/users/sunyonggang/repos","events_url":"https://api.github.com/users/sunyonggang/events{/privacy}","received_events_url":"https://api.github.com/users/sunyonggang/received_events","type":"User","site_admin":false},"body":"这边我参考的是文档给出的事例来的，https://www.npmjs.com/package/json-stream","created_at":"2015-05-18T08:08:40Z","updated_at":"2015-05-18T08:08:40Z","html_url":"https://github.com/lambdacloud/lambda-util.js/pull/5#discussion_r30487717","pull_request_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/comments/30487717"},"html":{"href":"https://github.com/lambdacloud/lambda-util.js/pull/5#discussion_r30487717"},"pull_request":{"href":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/5","id":34350475,"html_url":"https://github.com/lambdacloud/lambda-util.js/pull/5","diff_url":"https://github.com/lambdacloud/lambda-util.js/pull/5.diff","patch_url":"https://github.com/lambdacloud/lambda-util.js/pull/5.patch","issue_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/issues/5","number":5,"state":"open","locked":false,"title":" load json to elasticsearch with single data","user":{"login":"sunyonggang","id":3059266,"avatar_url":"https://avatars.githubusercontent.com/u/3059266?v=3","gravatar_id":"","url":"https://api.github.com/users/sunyonggang","html_url":"https://github.com/sunyonggang","followers_url":"https://api.github.com/users/sunyonggang/followers","following_url":"https://api.github.com/users/sunyonggang/following{/other_user}","gists_url":"https://api.github.com/users/sunyonggang/gists{/gist_id}","starred_url":"https://api.github.com/users/sunyonggang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunyonggang/subscriptions","organizations_url":"https://api.github.com/users/sunyonggang/orgs","repos_url":"https://api.github.com/users/sunyonggang/repos","events_url":"https://api.github.com/users/sunyonggang/events{/privacy}","received_events_url":"https://api.github.com/users/sunyonggang/received_events","type":"User","site_admin":false},"body":"add json to elasticsearch with single data with json2elastic.","created_at":"2015-04-29T10:37:34Z","updated_at":"2015-05-18T08:08:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8ddbf1e34dc8861229b9d029813b82115cae49f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/5/commits","review_comments_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/5/comments","review_comment_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/issues/5/comments","statuses_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/statuses/ff288884cfdc68c771e72e010a47473c953875d7","head":{"label":"sunyonggang:master","ref":"master","sha":"ff288884cfdc68c771e72e010a47473c953875d7","user":{"login":"sunyonggang","id":3059266,"avatar_url":"https://avatars.githubusercontent.com/u/3059266?v=3","gravatar_id":"","url":"https://api.github.com/users/sunyonggang","html_url":"https://github.com/sunyonggang","followers_url":"https://api.github.com/users/sunyonggang/followers","following_url":"https://api.github.com/users/sunyonggang/following{/other_user}","gists_url":"https://api.github.com/users/sunyonggang/gists{/gist_id}","starred_url":"https://api.github.com/users/sunyonggang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunyonggang/subscriptions","organizations_url":"https://api.github.com/users/sunyonggang/orgs","repos_url":"https://api.github.com/users/sunyonggang/repos","events_url":"https://api.github.com/users/sunyonggang/events{/privacy}","received_events_url":"https://api.github.com/users/sunyonggang/received_events","type":"User","site_admin":false},"repo":{"id":34786072,"name":"lambda-util.js","full_name":"sunyonggang/lambda-util.js","owner":{"login":"sunyonggang","id":3059266,"avatar_url":"https://avatars.githubusercontent.com/u/3059266?v=3","gravatar_id":"","url":"https://api.github.com/users/sunyonggang","html_url":"https://github.com/sunyonggang","followers_url":"https://api.github.com/users/sunyonggang/followers","following_url":"https://api.github.com/users/sunyonggang/following{/other_user}","gists_url":"https://api.github.com/users/sunyonggang/gists{/gist_id}","starred_url":"https://api.github.com/users/sunyonggang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunyonggang/subscriptions","organizations_url":"https://api.github.com/users/sunyonggang/orgs","repos_url":"https://api.github.com/users/sunyonggang/repos","events_url":"https://api.github.com/users/sunyonggang/events{/privacy}","received_events_url":"https://api.github.com/users/sunyonggang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sunyonggang/lambda-util.js","description":"The utilities provided by Lambdacloud service, written by nodejs.","fork":true,"url":"https://api.github.com/repos/sunyonggang/lambda-util.js","forks_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/forks","keys_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/teams","hooks_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/hooks","issue_events_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/issues/events{/number}","events_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/events","assignees_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/assignees{/user}","branches_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/branches{/branch}","tags_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/tags","blobs_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/statuses/{sha}","languages_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/languages","stargazers_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/stargazers","contributors_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/contributors","subscribers_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/subscribers","subscription_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/subscription","commits_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/contents/{+path}","compare_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/merges","archive_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/downloads","issues_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/issues{/number}","pulls_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/pulls{/number}","milestones_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/milestones{/number}","notifications_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/labels{/name}","releases_url":"https://api.github.com/repos/sunyonggang/lambda-util.js/releases{/id}","created_at":"2015-04-29T09:54:26Z","updated_at":"2015-05-05T08:24:58Z","pushed_at":"2015-05-05T08:24:56Z","git_url":"git://github.com/sunyonggang/lambda-util.js.git","ssh_url":"git@github.com:sunyonggang/lambda-util.js.git","clone_url":"https://github.com/sunyonggang/lambda-util.js.git","svn_url":"https://github.com/sunyonggang/lambda-util.js","homepage":null,"size":113,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"lambdacloud:master","ref":"master","sha":"3022842f190cab4f2b3e2e03b7e07e4cc3f5dc15","user":{"login":"lambdacloud","id":7385683,"avatar_url":"https://avatars.githubusercontent.com/u/7385683?v=3","gravatar_id":"","url":"https://api.github.com/users/lambdacloud","html_url":"https://github.com/lambdacloud","followers_url":"https://api.github.com/users/lambdacloud/followers","following_url":"https://api.github.com/users/lambdacloud/following{/other_user}","gists_url":"https://api.github.com/users/lambdacloud/gists{/gist_id}","starred_url":"https://api.github.com/users/lambdacloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambdacloud/subscriptions","organizations_url":"https://api.github.com/users/lambdacloud/orgs","repos_url":"https://api.github.com/users/lambdacloud/repos","events_url":"https://api.github.com/users/lambdacloud/events{/privacy}","received_events_url":"https://api.github.com/users/lambdacloud/received_events","type":"Organization","site_admin":false},"repo":{"id":33842476,"name":"lambda-util.js","full_name":"lambdacloud/lambda-util.js","owner":{"login":"lambdacloud","id":7385683,"avatar_url":"https://avatars.githubusercontent.com/u/7385683?v=3","gravatar_id":"","url":"https://api.github.com/users/lambdacloud","html_url":"https://github.com/lambdacloud","followers_url":"https://api.github.com/users/lambdacloud/followers","following_url":"https://api.github.com/users/lambdacloud/following{/other_user}","gists_url":"https://api.github.com/users/lambdacloud/gists{/gist_id}","starred_url":"https://api.github.com/users/lambdacloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lambdacloud/subscriptions","organizations_url":"https://api.github.com/users/lambdacloud/orgs","repos_url":"https://api.github.com/users/lambdacloud/repos","events_url":"https://api.github.com/users/lambdacloud/events{/privacy}","received_events_url":"https://api.github.com/users/lambdacloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lambdacloud/lambda-util.js","description":"The utilities provided by Lambdacloud service, written by nodejs.","fork":false,"url":"https://api.github.com/repos/lambdacloud/lambda-util.js","forks_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/forks","keys_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/teams","hooks_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/hooks","issue_events_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/issues/events{/number}","events_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/events","assignees_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/assignees{/user}","branches_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/branches{/branch}","tags_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/tags","blobs_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/statuses/{sha}","languages_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/languages","stargazers_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/stargazers","contributors_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/contributors","subscribers_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/subscribers","subscription_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/subscription","commits_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/contents/{+path}","compare_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/merges","archive_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/downloads","issues_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/issues{/number}","pulls_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls{/number}","milestones_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/milestones{/number}","notifications_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/labels{/name}","releases_url":"https://api.github.com/repos/lambdacloud/lambda-util.js/releases{/id}","created_at":"2015-04-13T01:55:51Z","updated_at":"2015-04-16T02:36:46Z","pushed_at":"2015-05-05T08:24:57Z","git_url":"git://github.com/lambdacloud/lambda-util.js.git","ssh_url":"git@github.com:lambdacloud/lambda-util.js.git","clone_url":"https://github.com/lambdacloud/lambda-util.js.git","svn_url":"https://github.com/lambdacloud/lambda-util.js","homepage":null,"size":384,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/5"},"html":{"href":"https://github.com/lambdacloud/lambda-util.js/pull/5"},"issue":{"href":"https://api.github.com/repos/lambdacloud/lambda-util.js/issues/5"},"comments":{"href":"https://api.github.com/repos/lambdacloud/lambda-util.js/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lambdacloud/lambda-util.js/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/lambdacloud/lambda-util.js/statuses/ff288884cfdc68c771e72e010a47473c953875d7"}}}}