{"action":"created","issue":{"url":"https://api.github.com/repos/GatorEducator/gatorgrader/issues/55","repository_url":"https://api.github.com/repos/GatorEducator/gatorgrader","labels_url":"https://api.github.com/repos/GatorEducator/gatorgrader/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/GatorEducator/gatorgrader/issues/55/comments","events_url":"https://api.github.com/repos/GatorEducator/gatorgrader/issues/55/events","html_url":"https://github.com/GatorEducator/gatorgrader/pull/55","id":353156024,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMjg3MDUy","number":55,"title":"Implement --json flag for changing report types","user":{"login":"Michionlion","id":5274499,"node_id":"MDQ6VXNlcjUyNzQ0OTk=","avatar_url":"https://avatars1.githubusercontent.com/u/5274499?v=4","gravatar_id":"","url":"https://api.github.com/users/Michionlion","html_url":"https://github.com/Michionlion","followers_url":"https://api.github.com/users/Michionlion/followers","following_url":"https://api.github.com/users/Michionlion/following{/other_user}","gists_url":"https://api.github.com/users/Michionlion/gists{/gist_id}","starred_url":"https://api.github.com/users/Michionlion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Michionlion/subscriptions","organizations_url":"https://api.github.com/users/Michionlion/orgs","repos_url":"https://api.github.com/users/Michionlion/repos","events_url":"https://api.github.com/users/Michionlion/events{/privacy}","received_events_url":"https://api.github.com/users/Michionlion/received_events","type":"User","site_admin":false},"labels":[{"id":666096660,"node_id":"MDU6TGFiZWw2NjYwOTY2NjA=","url":"https://api.github.com/repos/GatorEducator/gatorgrader/labels/feature","name":"feature","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-22T22:55:48Z","updated_at":"2018-08-23T18:36:57Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/GatorEducator/gatorgrader/pulls/55","html_url":"https://github.com/GatorEducator/gatorgrader/pull/55","diff_url":"https://github.com/GatorEducator/gatorgrader/pull/55.diff","patch_url":"https://github.com/GatorEducator/gatorgrader/pull/55.patch"},"body":"This implements the `--json` flag that will switch the report type to JSON. The old implementation of `output_json` (already written by @gkapfham) provides both the index of the check, and the check results themselves. The new implementation simply adds each of the check result 'objects' to a list which is then printed, resulting in the following format (whitespace is not guarenteed):\r\n\r\n```\r\n{\r\n  \"check\": \"Description of check\",\r\n  \"outcome\": true,\r\n  \"diagnostic\": \"\"\r\n}\r\n\r\n{\r\n  \"check\": \"Another check\",\r\n  \"outcome\": false,\r\n  \"diagnostic\": \"Description of failure\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/GatorEducator/gatorgrader/issues/comments/415524383","html_url":"https://github.com/GatorEducator/gatorgrader/pull/55#issuecomment-415524383","issue_url":"https://api.github.com/repos/GatorEducator/gatorgrader/issues/55","id":415524383,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTUyNDM4Mw==","user":{"login":"gkapfham","id":926029,"node_id":"MDQ6VXNlcjkyNjAyOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/926029?v=4","gravatar_id":"","url":"https://api.github.com/users/gkapfham","html_url":"https://github.com/gkapfham","followers_url":"https://api.github.com/users/gkapfham/followers","following_url":"https://api.github.com/users/gkapfham/following{/other_user}","gists_url":"https://api.github.com/users/gkapfham/gists{/gist_id}","starred_url":"https://api.github.com/users/gkapfham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkapfham/subscriptions","organizations_url":"https://api.github.com/users/gkapfham/orgs","repos_url":"https://api.github.com/users/gkapfham/repos","events_url":"https://api.github.com/users/gkapfham/events{/privacy}","received_events_url":"https://api.github.com/users/gkapfham/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T18:36:57Z","updated_at":"2018-08-23T18:36:57Z","author_association":"COLLABORATOR","body":"@Michionlion, I also have one clarifying comment about your first comment on this PR. You have written `\"outcome\": true` and I think that this would actually be `\"outcome\": True` since the value stored in the dictionary is a Python boolean and this is represented as `True`. I know that this is really small, but I wanted to confirm the matter."}}
{"actor":{"display_login":"gkapfham"}}