{"action":"created","issue":{"url":"https://api.github.com/repos/stedolan/jq/issues/354","repository_url":"https://api.github.com/repos/stedolan/jq","labels_url":"https://api.github.com/repos/stedolan/jq/issues/354/labels{/name}","comments_url":"https://api.github.com/repos/stedolan/jq/issues/354/comments","events_url":"https://api.github.com/repos/stedolan/jq/issues/354/events","html_url":"https://github.com/stedolan/jq/issues/354","id":32929438,"node_id":"MDU6SXNzdWUzMjkyOTQzOA==","number":354,"title":"Return empty string instead of \"null\" with \"jq --raw-output\" ?","user":{"login":"a7rk6s","id":109801,"node_id":"MDQ6VXNlcjEwOTgwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/109801?v=4","gravatar_id":"","url":"https://api.github.com/users/a7rk6s","html_url":"https://github.com/a7rk6s","followers_url":"https://api.github.com/users/a7rk6s/followers","following_url":"https://api.github.com/users/a7rk6s/following{/other_user}","gists_url":"https://api.github.com/users/a7rk6s/gists{/gist_id}","starred_url":"https://api.github.com/users/a7rk6s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a7rk6s/subscriptions","organizations_url":"https://api.github.com/users/a7rk6s/orgs","repos_url":"https://api.github.com/users/a7rk6s/repos","events_url":"https://api.github.com/users/a7rk6s/events{/privacy}","received_events_url":"https://api.github.com/users/a7rk6s/received_events","type":"User","site_admin":false},"labels":[{"id":39532099,"node_id":"MDU6TGFiZWwzOTUzMjA5OQ==","url":"https://api.github.com/repos/stedolan/jq/labels/feature%20request","name":"feature request","color":"207de5","default":false},{"id":133875459,"node_id":"MDU6TGFiZWwxMzM4NzU0NTk=","url":"https://api.github.com/repos/stedolan/jq/labels/wontfix","name":"wontfix","color":"f7c6c7","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":33,"created_at":"2014-05-06T20:25:22Z","updated_at":"2018-07-24T22:56:49Z","closed_at":"2015-07-26T22:46:15Z","author_association":"NONE","body":"I'm doing something like this in a shell script:\n\n```\nAPI_URL=http://whatever\nwhile [ \"$API_URL\" ]; do\n  #....stuff....\n  API_URL=$(jq -r .pagination.next_url $JSON)\ndone\n```\n\nWhen the key doesn't exist, it returns the string \"null\". Of course this is easy enough to work around, but it makes more sense to me that this would just return an empty string.\n"},"comment":{"url":"https://api.github.com/repos/stedolan/jq/issues/comments/407578303","html_url":"https://github.com/stedolan/jq/issues/354#issuecomment-407578303","issue_url":"https://api.github.com/repos/stedolan/jq/issues/354","id":407578303,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzU3ODMwMw==","user":{"login":"lilred","id":1834919,"node_id":"MDQ6VXNlcjE4MzQ5MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/1834919?v=4","gravatar_id":"","url":"https://api.github.com/users/lilred","html_url":"https://github.com/lilred","followers_url":"https://api.github.com/users/lilred/followers","following_url":"https://api.github.com/users/lilred/following{/other_user}","gists_url":"https://api.github.com/users/lilred/gists{/gist_id}","starred_url":"https://api.github.com/users/lilred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilred/subscriptions","organizations_url":"https://api.github.com/users/lilred/orgs","repos_url":"https://api.github.com/users/lilred/repos","events_url":"https://api.github.com/users/lilred/events{/privacy}","received_events_url":"https://api.github.com/users/lilred/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T22:56:49Z","updated_at":"2018-07-24T22:56:49Z","author_association":"NONE","body":"I [asked for something like this on the Gron issue tracker](https://github.com/tomnomnom/gron/issues/30) and @tomnomnom wrote [gron2shell](https://github.com/tomnomnom/hacks/tree/master/gron2shell). A+++ what a guy. I use this in my build automation along with GNU Make."}}
{"actor":{"display_login":"lilred"}}