LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jtbl

converts JSON to ASCII tables for terminal display

TLDR

Display JSON as table
$ cat [data.json] | jtbl
copy
Truncate long values
$ cat [data.json] | jtbl -t
copy
No headers
$ cat [data.json] | jtbl -n
copy
Markdown table
$ cat [data.json] | jtbl -m
copy
Wrap long text at column count
$ cat [data.json] | jtbl -w [80]
copy
Rotate output (one row per page, columns become rows)
$ cat [data.json] | jtbl -r
copy

SYNOPSIS

jtbl [options]

DESCRIPTION

jtbl converts JSON to ASCII tables for terminal display. It formats JSON arrays as readable tables.The tool pairs well with jc for displaying command output. It supports Markdown output for documentation.

PARAMETERS

-t, --truncate

Truncate long cell values to fit terminal width.
-n, --no-headers
Don't print column headers.
-m, --markdown
Output as a Markdown table.
-c, --csv
Output as CSV.
-H, --html
Output as an HTML table.
-r, --rotate
Rotate output so columns become rows (useful for wide tables).
-w COLS, --wrap=COLS
Wrap long cell values at the specified column count.
-q, --quiet
Suppress warning messages.
-v, --version
Show version.
--help
Display help information.

INSTALL

brew install jtbl
copy
nix profile install nixpkgs#jtbl
copy

CAVEATS

Expects array of objects. Python-based. Works with jc output.

HISTORY

jtbl was created by Kelly Brazil as a companion to jc for displaying JSON data as formatted tables.

SEE ALSO

jc(1), jq(1), column(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid