jc

Convert command output to JSON.

Visit website ↗

Profile updated

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.

Is jc a fit?

Based on Console’s review published on 2022-10-20. Summary updated .

Who it’s for

Developers who work with various data formats and commands should consider this tool for parsing and converting output

Why consider it

This tool can convert command output to JSON, allowing for easy translation and parsing

Keep in mind

The tool requires specifying a parser when piping, and not every command is supported

Console is a free weekly newsletter with short reviews of developer tools, covering strengths and tradeoffs. This review reflects Console’s assessment at publication on 2022-10-20. Features and limitations may have changed since the review date. 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.