json2table

module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2026 License: MIT

README

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.

  1. Go to the Release page.
  2. Find the latest release and download the binary matching your OS and CPU architecture.
  3. Extract the downloaded file and move the binary to a directory in your $PATH (e.g., /usr/local/bin).
  4. 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

GitHub GitHub last commit GitHub tag (latest by date) GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub top language GitHub language count GitHub repo size GitHub code size in bytes Workflow workflow workflow

Release GitHub release (latest by date) GitHub all releases GitHub Release Date

Quality-Qlty Maintainability Code Coverage

Quality-Sonar Code Smells Bugs Vulnerabilities Technical Debt Maintainability Rating Security Rating Reliability Rating Quality Gate Status Lines of Code Coverage Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (long format)

Wise visitors

Directories

Path Synopsis
cmd
json2table command
main cli entry
main cli entry
internal
application
Package application run the application
Package application run the application
versioninfo
Package versioninfo return version
Package versioninfo return version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL