textproc/gron 0.7.1p0 OpenBSD
make JSON greppable
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- textproc, lang/go
Description
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" | grep -v email json[0].commit.author = {}; json[0].commit.author.date = "2016-07-02T10:51:21Z"; json[0].commit.author.name = "Tom Hudson";
gron can work backwards too, enabling you to turn your filtered data back into JSON (gron --ungron).
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | textproc/gron | 0.7.1p0 |
| FreeBSD | textproc/gron | 0.7.1_22 |
| NetBSD | textproc/gron | 0.7.1nb17 |
| DragonFly | textproc/gron | 0.6.1_22 |
Install
Binary package:
pkg_add gron
From the ports tree:
cd /usr/ports/textproc/gron && make install
Dependencies
Build dependencies 2
No port depends on this one.