Skip to main content

A terminal JSON viewer with columnar navigation like JSON Hero

Project description

JSON TUI

A terminal JSON viewer with columnar navigation, inspired by JSON Hero.

Python 3.14+

Why?

I love JSON Hero, but in real life, privacy is a serious issue. In some companies I've worked at, leaked client data can get you fired or worse. In my everyday work, unreadable JSON responses (very long ones) happen frequently, so this viewer gives me a similar experience without any data leak risk.

What's it solving?

  • Offline - no data sent to any server
  • Terminal-based - no need for a browser or GUI (works over SSH or inside pods/containers)
  • Python-based - easy to install and extend
  • Performance - using Python means I can extend it with Rust for performance-critical parts if needed
  • UV compatibility - can be easily installed and run with UV

Features

  • Columnar Navigation: Navigate nested JSON structures in a multi-column view
  • Keyboard-driven: Vim-style keybindings (hjkl) and arrow keys
  • Syntax Highlighting: Color-coded values by type (strings, numbers, booleans, null)
  • Live Preview: See full values in the preview panel
  • Path Breadcrumbs: Always know where you are in the structure
  • Stdin Support: Pipe JSON directly from curl or other commands

Installation

# Easy with UV
uv tool install json-tui

# Also pip works
pip install json-tui

Usage

# View a JSON file
json-tui data.json

# Pipe from stdin
curl https://api.example.com/data | json-tui --stdin

# Or use echo
echo '{"hello": "world", "nested": {"key": "value"}}' | json-tui -s

Keybindings

Key Action
/ k Move up in current column
/ j Move down in current column
/ h Focus previous column
/ l Focus next column / expand
Enter Expand selected node
Backspace / Esc Collapse / go back
? Show help
q Quit

Development

# Run directly with UV
uv run json-tui sample.json

# Or activate the venv
source .venv/bin/activate
json-tui examples/sample.json

Next Steps

  • parse json using rust for better performance or py threads
  • improve long columns handling
  • fuzzy search
  • copy curent value/node to clipboard

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

json_tui-1.0.1.tar.gz (397.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

json_tui-1.0.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file json_tui-1.0.1.tar.gz.

File metadata

  • Download URL: json_tui-1.0.1.tar.gz
  • Upload date:
  • Size: 397.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for json_tui-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a212cfd49e3b86749f593041918770ef097c2d8464bda3c9c824abf7bec7d1c7
MD5 55dc3a369f9b9c5c1404c737bbe29e7e
BLAKE2b-256 d36f83ef5ec3fd07a4ec68ce80ec15ff40228a571ecf1c4082afea8be16b33de

See more details on using hashes here.

File details

Details for the file json_tui-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: json_tui-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for json_tui-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4b7fe608ba658a1635e864f33f4c2819f08daa0170452bc3c71de2aae06fb28b
MD5 8e6c700e090e09922fe9da3ec7b098cc
BLAKE2b-256 bb2fc4c59404a512d576742fde7aa34922f2c63a885e9b284d24a3f2825ed53c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page