modern-unix
modern-unix copied to clipboard
Proposal: gron
Gron is a nice json tree to a line per leaf element transformer and back again. It pairs nicely with jq
▶ gron "https://api.github.com/repos/tomnomnom/gron/commits?per_page=1" | fgrep "commit.author" | gron --ungron
[
{
"commit": {
"author": {
"date": "2016-07-02T10:51:21Z",
"email": "[email protected]",
"name": "Tom Hudson"
}
}
}
]
or you can use fx and not three differenet tools