JSON.sh is a lightweight, open-source JSON parser written entirely in shell scripting. It allows developers to inspect and process JSON data without requiring a dedicated programming language runtime. The parser works with ash, Bash, dash, and Zsh. It reads JSON from standard input and converts nested objects into path-value pairs. Each path is represented as a JSON array identifying the location of its corresponding value. Users can filter results through standard Unix utilities such as grep and awk. Configurable options provide leaf-only output, empty-value removal, and compact formatting. JSON.sh is useful for command-line automation, shell scripts, and processing JSON responses from web APIs.
Features
- Pure Shell-Based JSON Parsing
- Ash, Bash, Dash, and Zsh Compatibility
- Nested JSON Path and Value Extraction
- Unix Pipeline and Standard Input Integration
- Leaf-Only and Compact Output Modes
- Empty Value Filtering and Formatting Options
Categories
JSONLicense
MIT LicenseFollow JSON.sh
Other Useful Business Software
99.99% Uptime for MySQL and PostgreSQL Databases
Cloud SQL Enterprise Plus delivers near-zero downtime with 35 days of point-in-time recovery. Supports MySQL, PostgreSQL, and SQL Server.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of JSON.sh!