jo

Create JSON output from shell variables and command-line arguments

brewmacoslinux
Try with needOr install directly
Source

About

JSON output from a shell

Commands

jo

Examples

Create a simple JSON object from key-value pairs$ jo name=John age=30 city=NYC
Build JSON with command substitution and variables$ jo user=$USER timestamp=$(date +%s) status=active
Create nested JSON arrays and objects$ jo -a item1 item2 item3 | jo items=@- summary='three items'