archlinuxcn / repo

Arch Linux CN Repository
1.51k stars 293 forks source link

[package request] gron #1788

Closed yejingchen closed 4 years ago

yejingchen commented 4 years ago

问题类型 / Type of issues


From its description:

Make JSON greppable!

gron transforms JSON into discrete assignments to make it easier to grep for what you want and see the absolute 'path' to it. It eases the exploration of APIs that return large blobs of JSON but have terrible documentation.

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 = "mail@tomnomnom.com";
json[0].commit.author.name = "Tom Hudson";

go 1.7+

https://github.com/tomnomnom/gron

easy manipulating json

yuyichao commented 4 years ago

https://github.com/archlinuxcn/repo/pull/1761 clearly doesn't work ....