{"action":"created","issue":{"url":"https://api.github.com/repos/rlister/awful/issues/2","labels_url":"https://api.github.com/repos/rlister/awful/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/rlister/awful/issues/2/comments","events_url":"https://api.github.com/repos/rlister/awful/issues/2/events","html_url":"https://github.com/rlister/awful/issues/2","id":115873921,"number":2,"title":"`dyn scan` isn't returning a valid JSON when multiple items found","user":{"login":"phstc","id":105652,"avatar_url":"https://avatars.githubusercontent.com/u/105652?v=3","gravatar_id":"","url":"https://api.github.com/users/phstc","html_url":"https://github.com/phstc","followers_url":"https://api.github.com/users/phstc/followers","following_url":"https://api.github.com/users/phstc/following{/other_user}","gists_url":"https://api.github.com/users/phstc/gists{/gist_id}","starred_url":"https://api.github.com/users/phstc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phstc/subscriptions","organizations_url":"https://api.github.com/users/phstc/orgs","repos_url":"https://api.github.com/users/phstc/repos","events_url":"https://api.github.com/users/phstc/events{/privacy}","received_events_url":"https://api.github.com/users/phstc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-09T13:14:44Z","updated_at":"2015-11-09T13:58:33Z","closed_at":null,"body":"```shell\r\ndyn scan users > users.json\r\n```\r\nis returning:\r\n\r\n```json\r\n{\r\n \"id\": \"user1\"\r\n}\r\n{ \r\n \"id\": \"user2\"\r\n}\r\n```\r\ninstead of:\r\n\r\n```json\r\n[{\r\n \"id\": \"user1\"\r\n},\r\n{ \r\n \"id\": \"user2\"\r\n}]\r\n```\r\n\r\nMy suggestion is to make a uniform interface, always returning an array, even when there's a single item in the result set."},"comment":{"url":"https://api.github.com/repos/rlister/awful/issues/comments/155069140","html_url":"https://github.com/rlister/awful/issues/2#issuecomment-155069140","issue_url":"https://api.github.com/repos/rlister/awful/issues/2","id":155069140,"user":{"login":"phstc","id":105652,"avatar_url":"https://avatars.githubusercontent.com/u/105652?v=3","gravatar_id":"","url":"https://api.github.com/users/phstc","html_url":"https://github.com/phstc","followers_url":"https://api.github.com/users/phstc/followers","following_url":"https://api.github.com/users/phstc/following{/other_user}","gists_url":"https://api.github.com/users/phstc/gists{/gist_id}","starred_url":"https://api.github.com/users/phstc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phstc/subscriptions","organizations_url":"https://api.github.com/users/phstc/orgs","repos_url":"https://api.github.com/users/phstc/repos","events_url":"https://api.github.com/users/phstc/events{/privacy}","received_events_url":"https://api.github.com/users/phstc/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T13:58:33Z","updated_at":"2015-11-09T13:58:33Z","body":"@rlister I see, maybe it could have an option `--pretty` to make it a valid JSON and pretty formatted (see #3) wdyt?"}}