Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on jq 1.7 released. Parent comment
E.g.,
# gron gron "https://api.github.com/repos/tomnomnom/gron/commits?per_page=1" | fgrep commit.author json[0].commit.author = {}; json[0].commit.author.date = "2016-07-02T10:51:21Z"; json[0].commit.author.email = "[email protected]"; json[0].commit.author.name = "Tom Hudson"; # jq curl -L "https://api.github.com/repos/tomnomnom/gron/commits?per_page=1" | jq -r 'paths(scalars) as $p | getpath($p) | "\($p|join(".")|select(contains("commit.author"))) = \(.)"' 0.commit.author.name = Tom Hudson 0.commit.author.email = [email protected] 0.commit.author.date = 2022-04-13T14:23:37Z # jq with grep outside jq curl -L "https://api.github.com/repos/tomnomnom/gron/commits?per_page=1" | jq -r 'paths(scalars) as $p | getpath($p) | "\($p|join(".")) = \(.)"' | fgrep commit.author 0.commit.author.name = Tom Hudson 0.commit.author.email = [email protected] 0.commit.author.date = 2022-04-13T14:23:37Z
There are no comments on this comment yet.
E.g.,
With just a bit more work you can get it to output valid gron, and even to parse valid gron.