json2table
print json data in tabular format
Installation
Download Binaries
To install json2table, visit the Release page and download the appropriate binary for your operating system and architecture.
- Go to the Release page.
- Find the latest release and download the binary matching your OS and CPU architecture.
- Extract the downloaded file and move the binary to a directory in your
$PATH (e.g., /usr/local/bin).
- Verify installation by running
json2table --version.
Ubuntu/Debian
$ sudo curl -L https://siakhooi.github.io/apt/siakhooi-apt.list | sudo tee /etc/apt/sources.list.d/siakhooi-apt.list > /dev/null
$ sudo curl -L https://siakhooi.github.io/apt/siakhooi-apt.gpg | sudo tee /usr/share/keyrings/siakhooi-apt.gpg > /dev/null
$ sudo apt update
$ sudo apt install siakhooi-json2table
Fedora/Red Hat
$ sudo curl -L https://siakhooi.github.io/rpms/siakhooi-rpms.repo | sudo tee /etc/yum.repos.d/siakhooi-rpms.repo > /dev/null
$ sudo dnf install siakhooi-json2table
# or
$ sudo yum install siakhooi-json2table
Usage
NAME:
json2table - print json data in tabular format
USAGE:
json2table [global options] [dataFile]
VERSION:
v1.1.0
GLOBAL OPTIONS:
--build print build info and exit
--spec string, -s string read spec from specFile.json, or from environment variable JSON2TABLE_SPEC or JSON2TABLE_SPEC_FILE if not provided
--columns string, -c string Comma separated list of columns to print, ignore -s and JSON2TABLE_SPEC or JSON2TABLE_SPEC_FILE if provided
--help, -h show help
--version, -v print the version
Examples
Cli
$ json2table -s ./samples/spec1.json ./samples/data1.json
$ json2table -c 'id,desc,url,display.name' ./samples/data2.json
Scripts with Spec
Spec Reference
Quality
Deliverables
Reference
Badges




