A command-line utility to create JSON objects and arrays from shell input.
jo is a command-line utility that creates JSON objects and arrays from shell input. It allows users to generate JSON directly in the terminal by providing key-value pairs or piping data, making it ideal for scripting and API interactions. The tool solves the problem of manually constructing JSON in shell environments, streamlining data interchange tasks.
System administrators, DevOps engineers, and developers who work with shell scripts and need to generate JSON for APIs, configuration files, or data processing pipelines.
Developers choose jo for its simplicity, speed, and reliability in generating JSON from the command line without external dependencies. Its lightweight design and cross-platform availability make it a versatile tool for automation and scripting workflows.
JSON output from a shell
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Generates JSON objects directly from key-value pairs in command-line arguments, as shown in the README example with `jo -p name=jo n=17 parser=false`.
Creates JSON arrays from piped input using the `-a` flag, allowing easy conversion of sequential data like `seq 1 10 | jo -a`.
Outputs formatted, human-readable JSON with the `-p` option, enhancing readability for debugging and manual inspection.
Available on multiple platforms via package managers like Homebrew, apt, and Scoop, ensuring broad accessibility without complex setup.
Focuses on simplicity with no external dependencies, making it fast to run and easy to integrate into shell scripts.
Creating complex nested JSON requires workarounds like chaining commands, which can be inefficient and error-prone compared to using full scripting languages.
Lacks JSON schema validation or type checking, so malformed input may produce invalid JSON without clear error messages.
Installing from source requires a C compiler and tools like autoconf and automake, adding setup overhead compared to pre-built packages.