jray flattens nested JSON into human-readable lines.
Filter by path. Extract subtrees. Reconstruct back.
Zero dependencies. Blazing fast.
Four commands that cover everything jray does. Click any to explore further.
Everything you need to work with JSON in the terminal — nothing you don't.
Pure TypeScript. No bloated node_modules. Install it and it just works.
Unlike grep, --filter only matches against paths — never accidentally matches values.
Flatten and unflatten are perfect inverses. Your JSON comes back exactly as it went in.
Pipe it into anything. Works with curl, cat, grep, awk — your whole toolchain.
Faster startup than Node. Native TypeScript. Modern runtime for a modern tool.
Free forever. Read the code, fork it, contribute. Built in public from day one.
Every leaf value in your JSON gets its own line with the full path shown.
jray combines the best of both without requiring you to learn a query language.
| Feature | jray | jq | gron |
|---|---|---|---|
| Flatten JSON to lines | ✓ | ✗ | ✓ |
| Reconstruct JSON | ✓ | ✗ | ✓ |
| Filter by path | ✓ | ✓ | ✗ |
| Extract subtree as JSON | ✓ | ✓ | ✗ |
| No query language | ✓ | ✗ | ✓ |
| Zero dependencies | ✓ | ✓ | ✓ |
| TypeScript / modern codebase | ✓ | ✗ | ✗ |
Pick your package manager. The command is the same after install.
Open source. Zero dependencies. Built with Bun.