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)

Copied to clipboard
Kai