Skip to content

isacben/vj

Repository files navigation

vj

Interactive TUI JSON viewer.

Features

  • Folding
  • Syntax highlighting
  • Vim navigation and motions
  • Relative line numbers

Usage

Run this command to load a JSON file:

vj file.json

Or pipe JSON data into vj:

echo '{"helo": "world"}' | vj

Key Bindings

Folding

h or - fold JSON object or array
l or - unfold JSON object or array

Navigation

j or - move cursor down
k or - move cursor up
5j - move cursor 5 lines down from current position
5k - move cursor 5 lines up from current position
g - move cursor to the first line of the document
G - move cursor to the last line of the document

Command Mode

: - Switch to commands mode
:. - Find path in JSON for example :.users[0].email
:q - Close vj

About

Vim-like JSON tree viewer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages