Feed structured matches into a script or app.
Section: Editor-friendly formats
Use JSON for custom tooling
bash
bash
rg --json 'router' src/ | jqExplanation
JSON output avoids brittle splitting on colons or spaces.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Editor-friendly formats
Emit vimgrep-style results
Print `file:line:column:text` output for editors.
Disable ANSI color for downstream tools
Prevent escape sequences from breaking consumers.
Point ripgrep at a config file
Set a path that ripgrep reads for default arguments.