{"action":"created","comment":{"url":"https://api.github.com/repos/nhsalpha/glance/pulls/comments/58570166","id":58570166,"diff_hunk":"@@ -1,9 +1,11 @@\n var express = require('express');\n var app = express();\n-\n+var bodyParser = require('body-parser');\n var json2csv = require('json2csv');\n var fs = require('fs');\n \n+app.use(bodyParser.json());\n+\n var csvFields = ['correct', 'duration', 'real', 'response', 'responseTime', 'state', 'word'];","path":"server.js","position":10,"original_position":10,"commit_id":"00529d50dd6344c0cbca7c6d0f799d6b9c777bbc","original_commit_id":"00529d50dd6344c0cbca7c6d0f799d6b9c777bbc","user":{"login":"bottlerocket","id":238683,"avatar_url":"https://avatars.githubusercontent.com/u/238683?v=3","gravatar_id":"","url":"https://api.github.com/users/bottlerocket","html_url":"https://github.com/bottlerocket","followers_url":"https://api.github.com/users/bottlerocket/followers","following_url":"https://api.github.com/users/bottlerocket/following{/other_user}","gists_url":"https://api.github.com/users/bottlerocket/gists{/gist_id}","starred_url":"https://api.github.com/users/bottlerocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bottlerocket/subscriptions","organizations_url":"https://api.github.com/users/bottlerocket/orgs","repos_url":"https://api.github.com/users/bottlerocket/repos","events_url":"https://api.github.com/users/bottlerocket/events{/privacy}","received_events_url":"https://api.github.com/users/bottlerocket/received_events","type":"User","site_admin":false},"body":"if we add additional items to this array, will this automatically update the fields it outputs or does JSON2CSV have some hard coded stuff in it that we need to update as well. i.e. just a comment. showing where to make changes to the JSON you're updating.","created_at":"2016-04-05T16:28:47Z","updated_at":"2016-04-05T16:28:47Z","html_url":"https://github.com/nhsalpha/glance/pull/7#discussion_r58570166","pull_request_url":"https://api.github.com/repos/nhsalpha/glance/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/nhsalpha/glance/pulls/comments/58570166"},"html":{"href":"https://github.com/nhsalpha/glance/pull/7#discussion_r58570166"},"pull_request":{"href":"https://api.github.com/repos/nhsalpha/glance/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/nhsalpha/glance/pulls/7","id":65331963,"html_url":"https://github.com/nhsalpha/glance/pull/7","diff_url":"https://github.com/nhsalpha/glance/pull/7.diff","patch_url":"https://github.com/nhsalpha/glance/pull/7.patch","issue_url":"https://api.github.com/repos/nhsalpha/glance/issues/7","number":7,"state":"open","locked":false,"title":"Use POST and provide success and error pages","user":{"login":"Demotive","id":1913757,"avatar_url":"https://avatars.githubusercontent.com/u/1913757?v=3","gravatar_id":"","url":"https://api.github.com/users/Demotive","html_url":"https://github.com/Demotive","followers_url":"https://api.github.com/users/Demotive/followers","following_url":"https://api.github.com/users/Demotive/following{/other_user}","gists_url":"https://api.github.com/users/Demotive/gists{/gist_id}","starred_url":"https://api.github.com/users/Demotive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Demotive/subscriptions","organizations_url":"https://api.github.com/users/Demotive/orgs","repos_url":"https://api.github.com/users/Demotive/repos","events_url":"https://api.github.com/users/Demotive/events{/privacy}","received_events_url":"https://api.github.com/users/Demotive/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-05T16:10:00Z","updated_at":"2016-04-05T16:28:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fff0a850c19471a60d1d7a3bfffdbc94ab8a5c2b","assignee":{"login":"bottlerocket","id":238683,"avatar_url":"https://avatars.githubusercontent.com/u/238683?v=3","gravatar_id":"","url":"https://api.github.com/users/bottlerocket","html_url":"https://github.com/bottlerocket","followers_url":"https://api.github.com/users/bottlerocket/followers","following_url":"https://api.github.com/users/bottlerocket/following{/other_user}","gists_url":"https://api.github.com/users/bottlerocket/gists{/gist_id}","starred_url":"https://api.github.com/users/bottlerocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bottlerocket/subscriptions","organizations_url":"https://api.github.com/users/bottlerocket/orgs","repos_url":"https://api.github.com/users/bottlerocket/repos","events_url":"https://api.github.com/users/bottlerocket/events{/privacy}","received_events_url":"https://api.github.com/users/bottlerocket/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/nhsalpha/glance/pulls/7/commits","review_comments_url":"https://api.github.com/repos/nhsalpha/glance/pulls/7/comments","review_comment_url":"https://api.github.com/repos/nhsalpha/glance/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nhsalpha/glance/issues/7/comments","statuses_url":"https://api.github.com/repos/nhsalpha/glance/statuses/00529d50dd6344c0cbca7c6d0f799d6b9c777bbc","head":{"label":"nhsalpha:use-post","ref":"use-post","sha":"00529d50dd6344c0cbca7c6d0f799d6b9c777bbc","user":{"login":"nhsalpha","id":12557899,"avatar_url":"https://avatars.githubusercontent.com/u/12557899?v=3","gravatar_id":"","url":"https://api.github.com/users/nhsalpha","html_url":"https://github.com/nhsalpha","followers_url":"https://api.github.com/users/nhsalpha/followers","following_url":"https://api.github.com/users/nhsalpha/following{/other_user}","gists_url":"https://api.github.com/users/nhsalpha/gists{/gist_id}","starred_url":"https://api.github.com/users/nhsalpha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhsalpha/subscriptions","organizations_url":"https://api.github.com/users/nhsalpha/orgs","repos_url":"https://api.github.com/users/nhsalpha/repos","events_url":"https://api.github.com/users/nhsalpha/events{/privacy}","received_events_url":"https://api.github.com/users/nhsalpha/received_events","type":"Organization","site_admin":false},"repo":{"id":54572920,"name":"glance","full_name":"nhsalpha/glance","owner":{"login":"nhsalpha","id":12557899,"avatar_url":"https://avatars.githubusercontent.com/u/12557899?v=3","gravatar_id":"","url":"https://api.github.com/users/nhsalpha","html_url":"https://github.com/nhsalpha","followers_url":"https://api.github.com/users/nhsalpha/followers","following_url":"https://api.github.com/users/nhsalpha/following{/other_user}","gists_url":"https://api.github.com/users/nhsalpha/gists{/gist_id}","starred_url":"https://api.github.com/users/nhsalpha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhsalpha/subscriptions","organizations_url":"https://api.github.com/users/nhsalpha/orgs","repos_url":"https://api.github.com/users/nhsalpha/repos","events_url":"https://api.github.com/users/nhsalpha/events{/privacy}","received_events_url":"https://api.github.com/users/nhsalpha/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nhsalpha/glance","description":"Lo-fi glance testing experiment","fork":false,"url":"https://api.github.com/repos/nhsalpha/glance","forks_url":"https://api.github.com/repos/nhsalpha/glance/forks","keys_url":"https://api.github.com/repos/nhsalpha/glance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhsalpha/glance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhsalpha/glance/teams","hooks_url":"https://api.github.com/repos/nhsalpha/glance/hooks","issue_events_url":"https://api.github.com/repos/nhsalpha/glance/issues/events{/number}","events_url":"https://api.github.com/repos/nhsalpha/glance/events","assignees_url":"https://api.github.com/repos/nhsalpha/glance/assignees{/user}","branches_url":"https://api.github.com/repos/nhsalpha/glance/branches{/branch}","tags_url":"https://api.github.com/repos/nhsalpha/glance/tags","blobs_url":"https://api.github.com/repos/nhsalpha/glance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhsalpha/glance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhsalpha/glance/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhsalpha/glance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhsalpha/glance/statuses/{sha}","languages_url":"https://api.github.com/repos/nhsalpha/glance/languages","stargazers_url":"https://api.github.com/repos/nhsalpha/glance/stargazers","contributors_url":"https://api.github.com/repos/nhsalpha/glance/contributors","subscribers_url":"https://api.github.com/repos/nhsalpha/glance/subscribers","subscription_url":"https://api.github.com/repos/nhsalpha/glance/subscription","commits_url":"https://api.github.com/repos/nhsalpha/glance/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhsalpha/glance/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhsalpha/glance/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhsalpha/glance/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhsalpha/glance/contents/{+path}","compare_url":"https://api.github.com/repos/nhsalpha/glance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhsalpha/glance/merges","archive_url":"https://api.github.com/repos/nhsalpha/glance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhsalpha/glance/downloads","issues_url":"https://api.github.com/repos/nhsalpha/glance/issues{/number}","pulls_url":"https://api.github.com/repos/nhsalpha/glance/pulls{/number}","milestones_url":"https://api.github.com/repos/nhsalpha/glance/milestones{/number}","notifications_url":"https://api.github.com/repos/nhsalpha/glance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhsalpha/glance/labels{/name}","releases_url":"https://api.github.com/repos/nhsalpha/glance/releases{/id}","deployments_url":"https://api.github.com/repos/nhsalpha/glance/deployments","created_at":"2016-03-23T15:52:43Z","updated_at":"2016-03-23T17:53:56Z","pushed_at":"2016-04-05T16:10:00Z","git_url":"git://github.com/nhsalpha/glance.git","ssh_url":"git@github.com:nhsalpha/glance.git","clone_url":"https://github.com/nhsalpha/glance.git","svn_url":"https://github.com/nhsalpha/glance","homepage":null,"size":2319,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nhsalpha:master","ref":"master","sha":"107b74cd4da4549812c59c5a235bc79b3cb2d99b","user":{"login":"nhsalpha","id":12557899,"avatar_url":"https://avatars.githubusercontent.com/u/12557899?v=3","gravatar_id":"","url":"https://api.github.com/users/nhsalpha","html_url":"https://github.com/nhsalpha","followers_url":"https://api.github.com/users/nhsalpha/followers","following_url":"https://api.github.com/users/nhsalpha/following{/other_user}","gists_url":"https://api.github.com/users/nhsalpha/gists{/gist_id}","starred_url":"https://api.github.com/users/nhsalpha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhsalpha/subscriptions","organizations_url":"https://api.github.com/users/nhsalpha/orgs","repos_url":"https://api.github.com/users/nhsalpha/repos","events_url":"https://api.github.com/users/nhsalpha/events{/privacy}","received_events_url":"https://api.github.com/users/nhsalpha/received_events","type":"Organization","site_admin":false},"repo":{"id":54572920,"name":"glance","full_name":"nhsalpha/glance","owner":{"login":"nhsalpha","id":12557899,"avatar_url":"https://avatars.githubusercontent.com/u/12557899?v=3","gravatar_id":"","url":"https://api.github.com/users/nhsalpha","html_url":"https://github.com/nhsalpha","followers_url":"https://api.github.com/users/nhsalpha/followers","following_url":"https://api.github.com/users/nhsalpha/following{/other_user}","gists_url":"https://api.github.com/users/nhsalpha/gists{/gist_id}","starred_url":"https://api.github.com/users/nhsalpha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhsalpha/subscriptions","organizations_url":"https://api.github.com/users/nhsalpha/orgs","repos_url":"https://api.github.com/users/nhsalpha/repos","events_url":"https://api.github.com/users/nhsalpha/events{/privacy}","received_events_url":"https://api.github.com/users/nhsalpha/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nhsalpha/glance","description":"Lo-fi glance testing experiment","fork":false,"url":"https://api.github.com/repos/nhsalpha/glance","forks_url":"https://api.github.com/repos/nhsalpha/glance/forks","keys_url":"https://api.github.com/repos/nhsalpha/glance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nhsalpha/glance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nhsalpha/glance/teams","hooks_url":"https://api.github.com/repos/nhsalpha/glance/hooks","issue_events_url":"https://api.github.com/repos/nhsalpha/glance/issues/events{/number}","events_url":"https://api.github.com/repos/nhsalpha/glance/events","assignees_url":"https://api.github.com/repos/nhsalpha/glance/assignees{/user}","branches_url":"https://api.github.com/repos/nhsalpha/glance/branches{/branch}","tags_url":"https://api.github.com/repos/nhsalpha/glance/tags","blobs_url":"https://api.github.com/repos/nhsalpha/glance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nhsalpha/glance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nhsalpha/glance/git/refs{/sha}","trees_url":"https://api.github.com/repos/nhsalpha/glance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nhsalpha/glance/statuses/{sha}","languages_url":"https://api.github.com/repos/nhsalpha/glance/languages","stargazers_url":"https://api.github.com/repos/nhsalpha/glance/stargazers","contributors_url":"https://api.github.com/repos/nhsalpha/glance/contributors","subscribers_url":"https://api.github.com/repos/nhsalpha/glance/subscribers","subscription_url":"https://api.github.com/repos/nhsalpha/glance/subscription","commits_url":"https://api.github.com/repos/nhsalpha/glance/commits{/sha}","git_commits_url":"https://api.github.com/repos/nhsalpha/glance/git/commits{/sha}","comments_url":"https://api.github.com/repos/nhsalpha/glance/comments{/number}","issue_comment_url":"https://api.github.com/repos/nhsalpha/glance/issues/comments{/number}","contents_url":"https://api.github.com/repos/nhsalpha/glance/contents/{+path}","compare_url":"https://api.github.com/repos/nhsalpha/glance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nhsalpha/glance/merges","archive_url":"https://api.github.com/repos/nhsalpha/glance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nhsalpha/glance/downloads","issues_url":"https://api.github.com/repos/nhsalpha/glance/issues{/number}","pulls_url":"https://api.github.com/repos/nhsalpha/glance/pulls{/number}","milestones_url":"https://api.github.com/repos/nhsalpha/glance/milestones{/number}","notifications_url":"https://api.github.com/repos/nhsalpha/glance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nhsalpha/glance/labels{/name}","releases_url":"https://api.github.com/repos/nhsalpha/glance/releases{/id}","deployments_url":"https://api.github.com/repos/nhsalpha/glance/deployments","created_at":"2016-03-23T15:52:43Z","updated_at":"2016-03-23T17:53:56Z","pushed_at":"2016-04-05T16:10:00Z","git_url":"git://github.com/nhsalpha/glance.git","ssh_url":"git@github.com:nhsalpha/glance.git","clone_url":"https://github.com/nhsalpha/glance.git","svn_url":"https://github.com/nhsalpha/glance","homepage":null,"size":2319,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nhsalpha/glance/pulls/7"},"html":{"href":"https://github.com/nhsalpha/glance/pull/7"},"issue":{"href":"https://api.github.com/repos/nhsalpha/glance/issues/7"},"comments":{"href":"https://api.github.com/repos/nhsalpha/glance/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/nhsalpha/glance/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/nhsalpha/glance/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nhsalpha/glance/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/nhsalpha/glance/statuses/00529d50dd6344c0cbca7c6d0f799d6b9c777bbc"}}}}