LinuxCommandLibrary

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
$ cat [data.json] | jtbl -w
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.
-n, --no-headers
Don't print headers.
-m, --markdown
Output Markdown table.
-w, --wrap
Wrap text in cells.
-v, --version
Show version.
--help
Display help information.

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), tabulate(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community