README
¶
# gron
[](https://github.com/vyrus001/gron/actions/workflows/build.yml)
gron turns JSON into assignments with full paths, so `grep` can find values in unfamiliar data. It also turns filtered assignments back into JSON.
This repository is [vyrus001's fork](https://github.com/vyrus001/gron) of [Tom Hudson's original gron](https://github.com/tomnomnom/gron). Tom Hudson wrote gron; this fork maintains fixes and releases separately. See the [maintenance review](docs/MAINTENANCE.md) for the changes carried here. The [gron harness AI skill](.agents/skills/gron-harness/SKILL.md) shows agent authors how to inspect large JSON responses and return compact, path-aware results. The skill is guidance for an agent and does not install the `gron` binary.
## Install this fork
Choose one route. Package names shared with upstream must include the fork's repository or bucket name.
### Release archive: Linux, macOS, Windows, FreeBSD
Download the archive for your operating system and CPU from [this fork's releases](https://github.com/vyrus001/gron/releases). Extract it and put `gron` (or `gron.exe` on Windows) on your `PATH`. The release includes SHA-256 checksums. No runtime dependencies are required.
### Homebrew: macOS or Linux
```sh
brew install vyrus001/tap/gron
```
This uses [the fork's tap](https://github.com/vyrus001/homebrew-tap). Plain `brew install gron` selects the upstream Homebrew Core formula.
### Scoop: Windows
```powershell
scoop bucket add vyrus001 https://github.com/vyrus001/scoop-bucket
scoop install vyrus001/gron
```
This uses [the fork's bucket](https://github.com/vyrus001/scoop-bucket). Plain `scoop install gron` selects Scoop's upstream manifest.
### mise: supported release platforms
```sh
mise use -g github:vyrus001/gron@latest
```
The `github:` backend reads this fork's release assets directly. Plain `mise use -g gron@latest` can resolve to upstream.
### Go
```sh
go install github.com/vyrus001/gron@latest
```
Ensure your Go binary directory is on `PATH`. Check the result with `gron --version`.
## Use
Input can be a file, URL, or standard input:
```sh
gron response.json
gron https://api.github.com/repos/vyrus001/gron
curl -fsSL https://api.github.com/repos/vyrus001/gron | gron
```
For `{"user":{"name":"Tom"}}`, gron prints:
```text
json = {};
json.user = {};
json.user.name = "Tom";
```
Filter assignments, then reconstruct JSON:
```sh
gron response.json | grep 'json.user' | gron --ungron
```
Missing array positions become `null` when filtered assignments are reconstructed.
For scripts that need typed paths and values, use `--json`. Each output line is `[path, value]`:
```sh
gron --json response.json | jq -c 'select(.[0][-1] == "id")'
```
`--stream` reads consecutive JSON values, including JSONL and values without line breaks, as an array. With `--ungron`, it emits JSONL instead:
```sh
printf '{"a":1}{"b":2}' | gron --stream
```
`--no-sort` emits fields in input order while using less memory for large inputs. It still holds each scalar value in memory. Omit it when you need sorted, reproducible paths.
Run `gron --help` for all flags, including URL proxy settings and `--with-filename`. See [advanced examples](ADVANCED.mkd) for more shell workflows.
## License
MIT. See [LICENSE](LICENSE), which retains Tom Hudson's original copyright notice.
Documentation
¶
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.