jc
Converts shell command output and strings into JSON, YAML or dictionaries
jc is a command-line tool and Python library that turns the text output of common shell commands, file type checks and plain strings into structured JSON, YAML or Python dictionaries. It is aimed at people writing shell scripts and automation who want to query command output with jq instead of parsing it by hand.
It is released under the MIT license and the source code is public on GitHub. The listed platform is Linux and the command line, and the library can be imported into Python programs. Because the output is structured, it can be piped into other tools such as jq.
Alternatives to jc
Products that do a similar job in Developer Tools.
yq
command-line processor for YAML, JSON, XML, CSV and TOML files
dasel
command-line tool for querying and editing JSON, YAML, TOML and XML
zx
JavaScript wrapper for writing shell scripts
fx
Interactive terminal viewer and processor for JSON data
gron
Command-line tool that flattens JSON into greppable lines
PowerShell
cross-platform command-line shell and scripting language
m-cli
command-line toolkit of helper commands for macOS
Windows Terminal
Command-line terminal app and console host for Windows