jshon

Command line tool to parse, read and create JSON

Install

All systems
curl cmd.cat/jshon.sh
Debian Debian
apt-get install jshon
Ubuntu
apt-get install jshon
Arch Arch Linux
pacman -S jshon
image/svg+xml Kali Linux
apt-get install jshon
Windows (WSL2)
sudo apt-get update sudo apt-get install jshon
OS X
brew install jshon
Raspbian
apt-get install jshon

jshon

Command line tool to parse, read and create JSON

Jshon is a command line utility to parse, read and create JSON. It is designed to be as usable as possible from within the shell and replaces fragile adhoc parsers made from grep/sed/awk as well as heavyweight one-line parsers made from Perl/Python. Jshon loads json text from stdin, performs actions, then displays the last action on stdout. Json parsing features include: Return data types of values Report data type lengths Sort JSON data by keys In-place editing of JSON files Format or "beautify" JSON (as changing indentation, etc) Create JSON from an empty object Extraction of keys and values