jc
$ jc Community Low Riskjc (JSON Convert) pipes or wraps 200+ standard CLI tools and file formats (dig, ifconfig, netstat, ps, df, arp, ini, csv, /etc/hosts) and emits clean structured JSON ready for jq or AI agent reasoning.
brew install jc jc upgrades legacy POSIX commands that lack --json (ps, df, dig, lsof, ifconfig) into structured JSON for agent consumption.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Outputs clean JSON by default across 200+ parsers, supports magic syntax (jc <cmd>), streaming (--pretty / -p), and -y YAML.
- Outputs JSON natively for 200+ CLI formats with magic
jc <cmd>syntax
Pure read-only parser when piped; magic syntax only executes the command you explicitly pass to jc.
- Read-only stdout parser; magic mode runs only explicit target command
Available via Homebrew, PyPI (pip/uvx), and OS repos (apt, dnf) across macOS, Linux, and Windows.
- Packaged on Homebrew, PyPI, and major Linux distros
Immediately turns 200+ non-JSON system commands (dig, ps, df, netstat, lsof) into structured agent inputs.
- 200+ built-in parsers eliminating fragile regex/awk scraping
Well-maintained kellyjonbrazil/jc open-source project under MIT license.
- Active
kellyjonbrazil/jcrepository
Every parser has documented sample input/output schemas at kellyjonbrazil.github.io/jc/docs/.
- Per-parser schema docs at kellyjonbrazil.github.io/jc/docs/
Security, Auth & Guardrails
None; stateless parser for piped command output or local text files.
100% free and MIT open-source.
# jc Agent Rules - Use `jc --<parser>` when piping stdout (`ps aux | jc --ps`) or `jc <cmd>` magic syntax. - Check `jc -a` to confirm a parser exists for your target command and OS. - Pipe `jc` into `jq` to extract only needed fields before returning results.
Agent-Ready Command Recipes
Safe Read-Only Queries
df -h disk usage into JSON via magic syntax jc df -h
Runs df -h and converts columns into typed JSON objects.
dig DNS lookup output into jc + jq dig example.com | jc --dig | jq '.[0].answer'
Turns human-readable dig output into queryable JSON records.
Strengths for Agents
- + Eliminates brittle
awk/sed/regex scraping on 200+ classic UNIX utilities. - + Magic syntax (
jc df -h) and explicit pipe syntax (cmd | jc --cmd) are effortless. - + Documented output schemas for every supported parser.
Caveats & Pitfalls
- ! Python startup adds ~100ms overhead compared to Go/Rust tools.
- ! Locale-customized or non-standard command flags can break column parsers.