jc

Convert command output to JSON.

Visit website ↗

Console’s review

· Reviewed by David Mytton

What we like

Pipe the output of a command to get a JSON translation. Or, run in reverse to have jc execute the command and pick the parser automatically. Supports parsing files e.g. YAML, CSV, /etc/hosts. Colorizes output by default. Supports streaming e.g. commands like ping which provide continual output. Tool and parsers open source. Also available as a Python package.

Tradeoffs

When piping you need to specify the parser - there are lots of options, but not every command is supported.

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects our assessment at publication. Read our selection criteria and learn about Console.

Discover your next favorite tool

Independent devtool reviews and the latest betas, in your inbox every Thursday. Free.