JSON output from a shell
jo is a lightweight command-line utility designed to create JSON objects and arrays quickly and easily from the shell. It provides a simple, intuitive syntax for generating well-formatted JSON without the complexity of larger tools or manual string construction.
The tool excels at converting command-line arguments into JSON objects by treating key=value pairs as object properties, with automatic type inference for numbers and booleans. It can also create JSON arrays by reading from standard input, making it perfect for pipeline operations with other Unix tools like seq, find, or grep.
jo is particularly valuable for shell scripters, system administrators, and developers who need to generate JSON for APIs, configuration files, or data processing workflows. Its minimal footprint and straightforward interface make it an ideal addition to any Unix toolkit, especially for automation tasks that require quick JSON generation without the overhead of full programming languages.
# via Homebrew
brew install jo
# via Ubuntu
apt-get install jo
# via Snap
snap install jo