| name | gron |
| description | Use this skill when the user wants to make JSON grep-able, search JSON with grep, or convert JSON to a line-by-line format. |
gron Plugin
Make JSON greppable. Convert JSON to a grep-able format for easier searching and manipulation with standard Unix tools.
Commands
JSON Conversion
gron json convert — Convert JSON to grep-able format
Utility
gron _ _ — Passthrough to gron CLI
Usage Examples
- "Make this JSON grep-able"
- "Convert JSON to line-by-line format"
- "Search JSON with grep"
- "Convert back to JSON"
Installation
brew install gron
Or via Go:
go install github.com/tomnomnom/gron@latest
Examples
gron json convert data.json
gron json convert https://api.example.com/data.json
cat data.json | gron json convert
gron json convert --ungron data.gron > output.json
gron json convert --stream large.json
gron json convert --monochrome data.json
gron json convert --no-sort data.json
gron json convert data.json | grep email
gron json convert data.json | sed 's/old/new/'
gron json convert data.json | awk '/name/ {print}'
gron _ _ data.json
gron _ _ --ungron data.gron
Key Features
- Grep-friendly - Convert JSON to path=value format
- Unix integration - Works with grep, sed, awk, etc.
- Bidirectional - Convert back to JSON with --ungron
- Multiple sources - Files, URLs, or stdin
- Streaming - Handle large files efficiently
- Sorted output - Keys sorted by default
- Color support - Syntax highlighting
- No dependencies - Single binary
- Cross-platform - Linux, macOS, Windows
- URL support - Fetch JSON from URLs directly
Notes
- Default output is sorted by path
- Use --no-sort for faster processing
- Perfect for log analysis and data extraction
- Can be used in shell scripts
- Preserves data types when converting back