json.sh
A pipeable JSON parser written in Bash
yo, so it’s a json parser written in bash
Pipe json to it, and it traverses the json objects and prints out the path to the current object (as a JSON array) and then the object, without whitespace.
Usage
Options
- -b Brief output. Combines ‘Leaf only’ and ‘Prune empty’ options.
- -l Leaf only. Only show leaf nodes, which stops data duplication.
- -p Prune empty. Exclude fields with empty values.
- -h Show help text.
Links
- Source Code (GitHub)
- Author: Dominic Tarr
- Packager: Joseph Werle
blog comments powered by Disqus