commands.sh

jtbl

all

Utility to print JSON and JSON Lines data as a table in the terminal.

More info →

Options (2)

-t, --truncateboolean

Print a table and truncate rows instead of wrapping

Example: cat {{file.json}} | jtbl {{[-t|--truncate]}}
-n, --no-wrapboolean

Print a table and don't wrap or truncate rows

Example: cat {{file.json}} | jtbl {{[-n|--no-wrap]}}

Examples (4)

Print a table from JSON or JSON Lines input

cat file.json | jtbl

Print a table and specify the column width for wrapping

cat file.json | jtbl --cols=width

Print a table and truncate rows instead of wrapping

cat file.json | jtbl [-t|--truncate]

Print a table and don't wrap or truncate rows

cat file.json | jtbl [-n|--no-wrap]
made by @shridhargupta | data from tldr-pages