jsonviz
is a command-line tool built in Go that visualizes JSON file structures in a navigable tree format using the termui
library. This tool is designed to help developers and data scientists quickly understand and explore the structure of complex JSON data from the terminal.
- Interactive Tree View: Display JSON files as expandable and collapsible trees.
- Color Coding: Different colors for root, keys, and values to enhance readability.
- Keyboard Navigation: Use keyboard shortcuts to navigate through the JSON structure.
- Resizable UI: Adapt to terminal size changes dynamically.
To install jsonviz
, clone this repository and build the tool using Go.
git clone https://github.com/copyleftdev/jsonviz.git
cd jsonviz
go build
After building the tool, you can run it by specifying the JSON file you want to visualize:
./jsonviz path/to/your/file.json
- Arrow Up (
k
): Move up in the tree. - Arrow Down (
j
): Move down in the tree. - Enter: Expand or collapse the selected node.
- CTRL+C: Exit the application.
- Go 1.15 or higher
termui
library (automatically installed with go get)
Contributions are welcome! Feel free to submit pull requests, create issues for bugs you've found, or suggest new features.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/fooBar
). - Commit your changes (
git commit -am 'Add some fooBar'
). - Push to the branch (
git push origin feature/fooBar
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- GitHub: @copyleftdev