https://github.com/copyleftdev/jsonviz

visualize json files in the terminal

https://github.com/copyleftdev/jsonviz

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

cli json tool
Last synced: 5 months ago · JSON representation

Repository

visualize json files in the terminal

Basic Info
  • Host: GitHub
  • Owner: copyleftdev
  • License: apache-2.0
  • Language: Go
  • Default Branch: main
  • Homepage:
  • Size: 12.7 KB
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
cli json tool
Created almost 2 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License

README.md

jsonviz

asciicast 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
  • termui library (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.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/fooBar).
  3. Commit your changes (git commit -am 'Add some fooBar').
  4. Push to the branch (git push origin feature/fooBar).
  5. Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Contact

Owner

  • Name: Donald Johnson
  • Login: copyleftdev
  • Kind: user
  • Location: Los Angeles

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
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 7.3%
Average: 7.6%
Dependent repos count: 7.8%
Last synced: 6 months ago

Dependencies

.github/workflows/release.yml actions
  • actions/checkout v2 composite
  • actions/setup-go v2 composite
  • softprops/action-gh-release v1 composite
go.mod go
  • 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
go.sum go
  • 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