Skip to content

Interactive TUI JSON viewer with tree navigation, expand/collapse functionality, and real-time filtering

License

Notifications You must be signed in to change notification settings

cksidharthan/lazyjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazyjson

Interactive TUI JSON viewer with tree navigation, expand/collapse functionality, and real-time filtering.

LazyJSON Demo

Features

  • 🌳 Tree-based JSON navigation
  • ⌨️ Vim-style keyboard shortcuts
  • 🔍 Real-time JSON filtering
  • 📁 Support for large JSON files
  • 🎨 Syntax highlighting
  • 🔄 Expand/Collapse nodes

Installation

go install github.com/cksidharthan/lazyjson@latest

Or build from source:

git clone https://github.com/cksidharthan/lazyjson.git
cd lazyjson
go build

Usage

Basic Usage

# View a JSON file
lazyjson data.json

# View JSON from a URL
curl https://api.example.com/data.json > data.json && lazyjson data.json

Demo

Navigation

  • ↑/k: Move cursor up
  • ↓/j: Move cursor down
  • Enter/Space: Expand/Collapse node
  • h: Collapse node
  • l: Expand node
  • q: Quit

Filtering

Type to filter JSON nodes in real-time. The filter supports:

  • Exact matches
  • Partial matches
  • Case-insensitive search

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE for details

About

Interactive TUI JSON viewer with tree navigation, expand/collapse functionality, and real-time filtering

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages