sbjson

Parse, validate, and reformat JSON from the command line

brewmacoslinux
Try with needOr install directly
Source

About

JSON CLI parser & reformatter based on SBJson v5

Commands

sbjson

Examples

pretty print JSON in terminal$ sbjson < input.json
validate JSON syntax from file$ sbjson < data.json && echo 'valid'
minify JSON to single line$ sbjson -c < input.json
reformat JSON with custom indentation$ sbjson -p 2 < messy.json
pipe JSON through command line parser$ cat api_response.json | sbjson