jtbl just does the right thing. You pipe in JSON or JSON Lines and a beautiful table is printed. No configuring of headers. It will auto-wrap if your terminal is too narrow for the data. You can truncate vs. wrap, if you'd like, but other than that it's pretty simple and elegant.
https://blog.kellybrazil.com/2020/03/09/json-tables-in-the-terminal/
https://github.com/kellyjonbrazil
Example: ``` $ cat cities.json | jtbl LatD LatM LatS NS LonD LonM LonS EW City State
41 5 59 N 80 39 0 W Youngstown OH 42 52 48 N 97 23 23 W Yankton SD 46 35 59 N 120 30 36 W Yakima WA 42 16 12 N 71 48 0 W Worcester MA 43 37 48 N 89 46 11 W Wisconsin Dells WI 36 5 59 N 80 15 0 W Winston-Salem NC ```
[link] [comments]