{"action":"created","issue":{"url":"https://api.github.com/repos/jehiah/json2csv/issues/27","repository_url":"https://api.github.com/repos/jehiah/json2csv","labels_url":"https://api.github.com/repos/jehiah/json2csv/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/jehiah/json2csv/issues/27/comments","events_url":"https://api.github.com/repos/jehiah/json2csv/issues/27/events","html_url":"https://github.com/jehiah/json2csv/issues/27","id":71645124,"number":27,"title":"running problems","user":{"login":"johannnnnnn","id":12156430,"avatar_url":"https://avatars.githubusercontent.com/u/12156430?v=3","gravatar_id":"","url":"https://api.github.com/users/johannnnnnn","html_url":"https://github.com/johannnnnnn","followers_url":"https://api.github.com/users/johannnnnnn/followers","following_url":"https://api.github.com/users/johannnnnnn/following{/other_user}","gists_url":"https://api.github.com/users/johannnnnnn/gists{/gist_id}","starred_url":"https://api.github.com/users/johannnnnnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannnnnnn/subscriptions","organizations_url":"https://api.github.com/users/johannnnnnn/orgs","repos_url":"https://api.github.com/users/johannnnnnn/repos","events_url":"https://api.github.com/users/johannnnnnn/events{/privacy}","received_events_url":"https://api.github.com/users/johannnnnnn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jehiah/json2csv/labels/question","name":"question","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-28T16:58:17Z","updated_at":"2016-04-17T14:09:19Z","closed_at":"2015-04-28T17:55:39Z","body":"Hi!!\r\n\r\nI've installed json2csv by \r\n\r\n$go get github.com/jehiah/json2csv\r\n\r\nbut when I try to do\r\n\r\n$cat someFile.json | json2csv -k time,tx_index > output.csv\r\n\r\nthen I get the following:\r\n\r\n2015/04/28 17:18:20 ERROR Decoding JSON at line 1: unexpected end of JSON input\r\n{\r\n2015/04/28 17:18:20 ERROR Decoding JSON at line 2: invalid character ':' after top-level value\r\n  \"time\": 1348310820,\r\n2015/04/28 17:18:20 ERROR Decoding JSON at line 3: invalid character ':' after top-level value\r\n  \"tx_index\": 9741630\r\n2015/04/28 17:18:20 ERROR Decoding JSON at line 4: invalid character '}' looking for beginning of value\r\n}\r\n\r\nand so on... What am I missing?\r\n\r\nThank you for you time.\r\n"},"comment":{"url":"https://api.github.com/repos/jehiah/json2csv/issues/comments/211026304","html_url":"https://github.com/jehiah/json2csv/issues/27#issuecomment-211026304","issue_url":"https://api.github.com/repos/jehiah/json2csv/issues/27","id":211026304,"user":{"login":"Ssalasromero","id":15247734,"avatar_url":"https://avatars.githubusercontent.com/u/15247734?v=3","gravatar_id":"","url":"https://api.github.com/users/Ssalasromero","html_url":"https://github.com/Ssalasromero","followers_url":"https://api.github.com/users/Ssalasromero/followers","following_url":"https://api.github.com/users/Ssalasromero/following{/other_user}","gists_url":"https://api.github.com/users/Ssalasromero/gists{/gist_id}","starred_url":"https://api.github.com/users/Ssalasromero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ssalasromero/subscriptions","organizations_url":"https://api.github.com/users/Ssalasromero/orgs","repos_url":"https://api.github.com/users/Ssalasromero/repos","events_url":"https://api.github.com/users/Ssalasromero/events{/privacy}","received_events_url":"https://api.github.com/users/Ssalasromero/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T14:09:19Z","updated_at":"2016-04-17T14:09:19Z","body":"@thinkjson I got the same problem. What can I do to easily get an json output in one object per line? I usually format it with pretty print through python json.tools. \r\n\r\nThx in advance"}}