A command-line utility for creating JSON objects and arrays from shell commands.
gjo is a small command-line utility written in Go that creates JSON objects and arrays from shell commands. It allows developers to generate structured JSON data directly in the terminal, useful for scripting, testing APIs, or creating configuration files. The tool supports nested structures and pretty-printed output.
Developers and system administrators who work with JSON in shell scripts, automate API interactions, or need quick JSON generation from the command line.
gjo offers a simple, lightweight alternative to manual JSON crafting or heavier tools, with cross-platform support and easy integration into existing shell workflows.
Small utility to create JSON objects
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Integrates with pipelines and command substitution, enabling nested JSON creation through recursive gjo calls as shown in the README examples.
Supports building nested objects and arrays with intuitive key=value syntax and the -a flag for arrays, demonstrated in usage with gjo inside gjo.
Works on macOS, Linux, and Windows (with shellwrap), making it versatile across operating systems, as noted in the README's support section.
Formats JSON output with indentation using the -p flag, improving readability for debugging and documentation, as highlighted in the feature list.
On Windows, full functionality requires installing shellwrap for command substitution, adding an extra setup step and potential compatibility issues, as admitted in the README.
Focuses solely on JSON generation; lacks built-in capabilities for parsing, validating, or manipulating existing JSON, limiting its use in broader JSON workflows.
Building from source requires Go and Git, which might not be installed on all systems, though pre-compiled binaries are available, adding initial setup overhead.