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
Build Agents and Models on One Platform
Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of JSON.sh!