gron
https://github.com/tomnomnom/gron
JSONをgrepしやすいように変換する
code:bash
$ gron "https://api.github.com/repos/tomnomnom/gron/commits?per_page=1" | fgrep "commit.author"
json0.commit.author = {};
json0.commit.author.date = "2016-07-02T10:51:21Z";
json0.commit.author.email = "mail@tomnomnom.com";
json0.commit.author.name = "Tom Hudson";
gron --ungron (または-u)
でjsonに戻せる
---.icon
jsonのような階層構造を、行ベースで展開する
a
b
c
c-0
d
こういう階層関係を
a
a b
a c
a c c-0
a d
のようにする
行ベースなのでシェルスクリプトにやさしい
jsonの中身をgrepで見れるというのがすごい