https://github.com/copyleftdev/jsonviz
visualize json files in the terminal
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.6%) to scientific vocabulary
Keywords
Repository
visualize json files in the terminal
Basic Info
Statistics
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
jsonviz
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.
Features
- 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.
Installation
To install jsonviz, clone this repository and build the tool using Go.
bash
git clone https://github.com/copyleftdev/jsonviz.git
cd jsonviz
go build
Usage
After building the tool, you can run it by specifying the JSON file you want to visualize:
bash
./jsonviz path/to/your/file.json
Keyboard Shortcuts
- 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.
Requirements
- Go 1.15 or higher
termuilibrary (automatically installed with go get)
Contributing
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.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Contact
- GitHub: @copyleftdev
Owner
- Name: Donald Johnson
- Login: copyleftdev
- Kind: user
- Location: Los Angeles
- Repositories: 39
- Profile: https://github.com/copyleftdev
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
proxy.golang.org: github.com/copyleftdev/jsonviz
- Homepage: https://github.com/copyleftdev/jsonviz
- Documentation: https://pkg.go.dev/github.com/copyleftdev/jsonviz#section-documentation
- License: Apache-2.0
-
Latest release: v1.0.3
published almost 2 years ago
Rankings
Dependencies
- actions/checkout v2 composite
- actions/setup-go v2 composite
- softprops/action-gh-release v1 composite
- github.com/gizak/termui/v3 v3.1.0
- github.com/mattn/go-runewidth v0.0.2
- github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7
- github.com/nsf/termbox-go v0.0.0-20190121233118-02980233997d
- github.com/gizak/termui/v3 v3.1.0
- github.com/mattn/go-runewidth v0.0.2
- github.com/mitchellh/go-wordwrap v0.0.0-20150314170334-ad45545899c7
- github.com/nsf/termbox-go v0.0.0-20190121233118-02980233997d