{"action":"created","comment":{"url":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/comments/95472180","pull_request_review_id":16028101,"id":95472180,"diff_hunk":"@@ -664,7 +664,10 @@ def save_results(files_count, scanned_files, format, input, output_file):\n         meta['files_count'] = files_count\n         # TODO: add scanning options to meta\n         meta['files'] = scanned_files\n-        output_file.write(unicode(json.dumps(meta, indent=2 * ' ', iterable_as_array=True, encoding='utf-8')))\n+        if format == 'json-pp':\n+            output_file.write(unicode(json.dumps(meta, indent=2 * ' ', iterable_as_array=True, encoding='utf-8')))\n+        else:\n+            output_file.write(unicode(json.dumps(meta, separators=(',', ':'), iterable_as_array=True, encoding='utf-8')))","path":"src/scancode/cli.py","position":26,"original_position":26,"commit_id":"2b258adb386b9c8232ae0c6429987f68e0a61055","original_commit_id":"2b258adb386b9c8232ae0c6429987f68e0a61055","user":{"login":"pombredanne","id":675997,"avatar_url":"https://avatars.githubusercontent.com/u/675997?v=3","gravatar_id":"","url":"https://api.github.com/users/pombredanne","html_url":"https://github.com/pombredanne","followers_url":"https://api.github.com/users/pombredanne/followers","following_url":"https://api.github.com/users/pombredanne/following{/other_user}","gists_url":"https://api.github.com/users/pombredanne/gists{/gist_id}","starred_url":"https://api.github.com/users/pombredanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pombredanne/subscriptions","organizations_url":"https://api.github.com/users/pombredanne/orgs","repos_url":"https://api.github.com/users/pombredanne/repos","events_url":"https://api.github.com/users/pombredanne/events{/privacy}","received_events_url":"https://api.github.com/users/pombredanne/received_events","type":"User","site_admin":false},"body":"Excellent addition for a super compact JSON :+1: \r\n","created_at":"2017-01-10T22:27:02Z","updated_at":"2017-01-10T22:27:02Z","html_url":"https://github.com/nexB/scancode-toolkit/pull/434#discussion_r95472180","pull_request_url":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/434","_links":{"self":{"href":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/comments/95472180"},"html":{"href":"https://github.com/nexB/scancode-toolkit/pull/434#discussion_r95472180"},"pull_request":{"href":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/434"}}},"pull_request":{"url":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/434","id":100404871,"html_url":"https://github.com/nexB/scancode-toolkit/pull/434","diff_url":"https://github.com/nexB/scancode-toolkit/pull/434.diff","patch_url":"https://github.com/nexB/scancode-toolkit/pull/434.patch","issue_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/434","number":434,"state":"open","locked":false,"title":"#425: JSON outputs no longer pretty-printed by default; added format …","user":{"login":"majurg","id":7485204,"avatar_url":"https://avatars.githubusercontent.com/u/7485204?v=3","gravatar_id":"","url":"https://api.github.com/users/majurg","html_url":"https://github.com/majurg","followers_url":"https://api.github.com/users/majurg/followers","following_url":"https://api.github.com/users/majurg/following{/other_user}","gists_url":"https://api.github.com/users/majurg/gists{/gist_id}","starred_url":"https://api.github.com/users/majurg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majurg/subscriptions","organizations_url":"https://api.github.com/users/majurg/orgs","repos_url":"https://api.github.com/users/majurg/repos","events_url":"https://api.github.com/users/majurg/events{/privacy}","received_events_url":"https://api.github.com/users/majurg/received_events","type":"User","site_admin":false},"body":"…option 'json-pp' for pretty-printed JSON outputs.","created_at":"2017-01-06T03:29:57Z","updated_at":"2017-01-10T22:27:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7969276fac39e7fa11b21c7134604b24630c55b","assignee":{"login":"pombredanne","id":675997,"avatar_url":"https://avatars.githubusercontent.com/u/675997?v=3","gravatar_id":"","url":"https://api.github.com/users/pombredanne","html_url":"https://github.com/pombredanne","followers_url":"https://api.github.com/users/pombredanne/followers","following_url":"https://api.github.com/users/pombredanne/following{/other_user}","gists_url":"https://api.github.com/users/pombredanne/gists{/gist_id}","starred_url":"https://api.github.com/users/pombredanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pombredanne/subscriptions","organizations_url":"https://api.github.com/users/pombredanne/orgs","repos_url":"https://api.github.com/users/pombredanne/repos","events_url":"https://api.github.com/users/pombredanne/events{/privacy}","received_events_url":"https://api.github.com/users/pombredanne/received_events","type":"User","site_admin":false},"assignees":[{"login":"pombredanne","id":675997,"avatar_url":"https://avatars.githubusercontent.com/u/675997?v=3","gravatar_id":"","url":"https://api.github.com/users/pombredanne","html_url":"https://github.com/pombredanne","followers_url":"https://api.github.com/users/pombredanne/followers","following_url":"https://api.github.com/users/pombredanne/following{/other_user}","gists_url":"https://api.github.com/users/pombredanne/gists{/gist_id}","starred_url":"https://api.github.com/users/pombredanne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pombredanne/subscriptions","organizations_url":"https://api.github.com/users/pombredanne/orgs","repos_url":"https://api.github.com/users/pombredanne/repos","events_url":"https://api.github.com/users/pombredanne/events{/privacy}","received_events_url":"https://api.github.com/users/pombredanne/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/434/commits","review_comments_url":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/434/comments","review_comment_url":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/434/comments","statuses_url":"https://api.github.com/repos/nexB/scancode-toolkit/statuses/2b258adb386b9c8232ae0c6429987f68e0a61055","head":{"label":"nexB:425-json-output-change","ref":"425-json-output-change","sha":"2b258adb386b9c8232ae0c6429987f68e0a61055","user":{"login":"nexB","id":10789967,"avatar_url":"https://avatars.githubusercontent.com/u/10789967?v=3","gravatar_id":"","url":"https://api.github.com/users/nexB","html_url":"https://github.com/nexB","followers_url":"https://api.github.com/users/nexB/followers","following_url":"https://api.github.com/users/nexB/following{/other_user}","gists_url":"https://api.github.com/users/nexB/gists{/gist_id}","starred_url":"https://api.github.com/users/nexB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexB/subscriptions","organizations_url":"https://api.github.com/users/nexB/orgs","repos_url":"https://api.github.com/users/nexB/repos","events_url":"https://api.github.com/users/nexB/events{/privacy}","received_events_url":"https://api.github.com/users/nexB/received_events","type":"Organization","site_admin":false},"repo":{"id":38373338,"name":"scancode-toolkit","full_name":"nexB/scancode-toolkit","owner":{"login":"nexB","id":10789967,"avatar_url":"https://avatars.githubusercontent.com/u/10789967?v=3","gravatar_id":"","url":"https://api.github.com/users/nexB","html_url":"https://github.com/nexB","followers_url":"https://api.github.com/users/nexB/followers","following_url":"https://api.github.com/users/nexB/following{/other_user}","gists_url":"https://api.github.com/users/nexB/gists{/gist_id}","starred_url":"https://api.github.com/users/nexB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexB/subscriptions","organizations_url":"https://api.github.com/users/nexB/orgs","repos_url":"https://api.github.com/users/nexB/repos","events_url":"https://api.github.com/users/nexB/events{/privacy}","received_events_url":"https://api.github.com/users/nexB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nexB/scancode-toolkit","description":"ScanCode is a tool to scan code and detect licenses, copyrights and more. This open source code scanning tool helps you find and discover open source and third-party components in your code.","fork":false,"url":"https://api.github.com/repos/nexB/scancode-toolkit","forks_url":"https://api.github.com/repos/nexB/scancode-toolkit/forks","keys_url":"https://api.github.com/repos/nexB/scancode-toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nexB/scancode-toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nexB/scancode-toolkit/teams","hooks_url":"https://api.github.com/repos/nexB/scancode-toolkit/hooks","issue_events_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/nexB/scancode-toolkit/events","assignees_url":"https://api.github.com/repos/nexB/scancode-toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/nexB/scancode-toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/nexB/scancode-toolkit/tags","blobs_url":"https://api.github.com/repos/nexB/scancode-toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nexB/scancode-toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nexB/scancode-toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/nexB/scancode-toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nexB/scancode-toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/nexB/scancode-toolkit/languages","stargazers_url":"https://api.github.com/repos/nexB/scancode-toolkit/stargazers","contributors_url":"https://api.github.com/repos/nexB/scancode-toolkit/contributors","subscribers_url":"https://api.github.com/repos/nexB/scancode-toolkit/subscribers","subscription_url":"https://api.github.com/repos/nexB/scancode-toolkit/subscription","commits_url":"https://api.github.com/repos/nexB/scancode-toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/nexB/scancode-toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/nexB/scancode-toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/nexB/scancode-toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/nexB/scancode-toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nexB/scancode-toolkit/merges","archive_url":"https://api.github.com/repos/nexB/scancode-toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nexB/scancode-toolkit/downloads","issues_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/nexB/scancode-toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/nexB/scancode-toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/nexB/scancode-toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nexB/scancode-toolkit/labels{/name}","releases_url":"https://api.github.com/repos/nexB/scancode-toolkit/releases{/id}","deployments_url":"https://api.github.com/repos/nexB/scancode-toolkit/deployments","created_at":"2015-07-01T13:43:06Z","updated_at":"2017-01-09T23:50:08Z","pushed_at":"2017-01-10T21:48:34Z","git_url":"git://github.com/nexB/scancode-toolkit.git","ssh_url":"git@github.com:nexB/scancode-toolkit.git","clone_url":"https://github.com/nexB/scancode-toolkit.git","svn_url":"https://github.com/nexB/scancode-toolkit","homepage":"https://github.com/nexB/scancode-toolkit/releases/latest","size":146483,"stargazers_count":134,"watchers_count":134,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":127,"forks":26,"open_issues":127,"watchers":134,"default_branch":"develop"}},"base":{"label":"nexB:develop","ref":"develop","sha":"275b25171caa8b57a2ff212c3946f9d588724824","user":{"login":"nexB","id":10789967,"avatar_url":"https://avatars.githubusercontent.com/u/10789967?v=3","gravatar_id":"","url":"https://api.github.com/users/nexB","html_url":"https://github.com/nexB","followers_url":"https://api.github.com/users/nexB/followers","following_url":"https://api.github.com/users/nexB/following{/other_user}","gists_url":"https://api.github.com/users/nexB/gists{/gist_id}","starred_url":"https://api.github.com/users/nexB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexB/subscriptions","organizations_url":"https://api.github.com/users/nexB/orgs","repos_url":"https://api.github.com/users/nexB/repos","events_url":"https://api.github.com/users/nexB/events{/privacy}","received_events_url":"https://api.github.com/users/nexB/received_events","type":"Organization","site_admin":false},"repo":{"id":38373338,"name":"scancode-toolkit","full_name":"nexB/scancode-toolkit","owner":{"login":"nexB","id":10789967,"avatar_url":"https://avatars.githubusercontent.com/u/10789967?v=3","gravatar_id":"","url":"https://api.github.com/users/nexB","html_url":"https://github.com/nexB","followers_url":"https://api.github.com/users/nexB/followers","following_url":"https://api.github.com/users/nexB/following{/other_user}","gists_url":"https://api.github.com/users/nexB/gists{/gist_id}","starred_url":"https://api.github.com/users/nexB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexB/subscriptions","organizations_url":"https://api.github.com/users/nexB/orgs","repos_url":"https://api.github.com/users/nexB/repos","events_url":"https://api.github.com/users/nexB/events{/privacy}","received_events_url":"https://api.github.com/users/nexB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nexB/scancode-toolkit","description":"ScanCode is a tool to scan code and detect licenses, copyrights and more. This open source code scanning tool helps you find and discover open source and third-party components in your code.","fork":false,"url":"https://api.github.com/repos/nexB/scancode-toolkit","forks_url":"https://api.github.com/repos/nexB/scancode-toolkit/forks","keys_url":"https://api.github.com/repos/nexB/scancode-toolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nexB/scancode-toolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nexB/scancode-toolkit/teams","hooks_url":"https://api.github.com/repos/nexB/scancode-toolkit/hooks","issue_events_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/events{/number}","events_url":"https://api.github.com/repos/nexB/scancode-toolkit/events","assignees_url":"https://api.github.com/repos/nexB/scancode-toolkit/assignees{/user}","branches_url":"https://api.github.com/repos/nexB/scancode-toolkit/branches{/branch}","tags_url":"https://api.github.com/repos/nexB/scancode-toolkit/tags","blobs_url":"https://api.github.com/repos/nexB/scancode-toolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nexB/scancode-toolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nexB/scancode-toolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/nexB/scancode-toolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nexB/scancode-toolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/nexB/scancode-toolkit/languages","stargazers_url":"https://api.github.com/repos/nexB/scancode-toolkit/stargazers","contributors_url":"https://api.github.com/repos/nexB/scancode-toolkit/contributors","subscribers_url":"https://api.github.com/repos/nexB/scancode-toolkit/subscribers","subscription_url":"https://api.github.com/repos/nexB/scancode-toolkit/subscription","commits_url":"https://api.github.com/repos/nexB/scancode-toolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/nexB/scancode-toolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/nexB/scancode-toolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/nexB/scancode-toolkit/contents/{+path}","compare_url":"https://api.github.com/repos/nexB/scancode-toolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nexB/scancode-toolkit/merges","archive_url":"https://api.github.com/repos/nexB/scancode-toolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nexB/scancode-toolkit/downloads","issues_url":"https://api.github.com/repos/nexB/scancode-toolkit/issues{/number}","pulls_url":"https://api.github.com/repos/nexB/scancode-toolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/nexB/scancode-toolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/nexB/scancode-toolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nexB/scancode-toolkit/labels{/name}","releases_url":"https://api.github.com/repos/nexB/scancode-toolkit/releases{/id}","deployments_url":"https://api.github.com/repos/nexB/scancode-toolkit/deployments","created_at":"2015-07-01T13:43:06Z","updated_at":"2017-01-09T23:50:08Z","pushed_at":"2017-01-10T21:48:34Z","git_url":"git://github.com/nexB/scancode-toolkit.git","ssh_url":"git@github.com:nexB/scancode-toolkit.git","clone_url":"https://github.com/nexB/scancode-toolkit.git","svn_url":"https://github.com/nexB/scancode-toolkit","homepage":"https://github.com/nexB/scancode-toolkit/releases/latest","size":146483,"stargazers_count":134,"watchers_count":134,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":127,"forks":26,"open_issues":127,"watchers":134,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/434"},"html":{"href":"https://github.com/nexB/scancode-toolkit/pull/434"},"issue":{"href":"https://api.github.com/repos/nexB/scancode-toolkit/issues/434"},"comments":{"href":"https://api.github.com/repos/nexB/scancode-toolkit/issues/434/comments"},"review_comments":{"href":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/434/comments"},"review_comment":{"href":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nexB/scancode-toolkit/pulls/434/commits"},"statuses":{"href":"https://api.github.com/repos/nexB/scancode-toolkit/statuses/2b258adb386b9c8232ae0c6429987f68e0a61055"}}}}
{"actor":{"display_login":"pombredanne"}}