jnv-0.2.2 is not a library.
jnv
jnv is designed for navigating JSON,
offering an interactive JSON viewer and jq filter editor.
Features
- Interactive JSON viewer and
jqfilter editor- Syntax highlighting for JSON
- Capable of accommodating various format
- Input: File, Stdin
- Data: A JSON or multiple JSON structures that can be deserialized with StreamDeserializer, such as JSON Lines
- Auto-completion for the filter
- Only supports:
- Hint message to evaluate the filter
Installation
Homebrew
See here for more info.
Or install via Homebrew Tap:
MacPorts
See here for more info.
Nix / NixOS
See package entry on search.nixos.org for more info.
Cargo
Requirements
[!NOTE] jnv does not require users to install
jqon their system, because it utilizes j9 Rust bindings.
Examples
|
Or
Keymap
| Key | Action |
|---|---|
| Ctrl + C | Exit jnv |
| Tab | jq filter auto-completion |
| ← | Move the cursor one character to the left |
| → | Move the cursor one character to the right |
| Ctrl + A | Move the cursor to the start of the filter |
| Ctrl + E | Move the cursor to the end of the filter |
| Backspace | Delete a character of filter at the cursor position |
| Ctrl + U | Delete all characters of filter |
| ↑, Ctrl + K | Move the cursor one entry up in JSON viewer |
| ↓, Ctrl + J | Move the cursor one entry down in JSON viewer |
| Ctrl + H | Move to the last entry in JSON viewer |
| Ctrl + L | Move to the first entry in JSON viewer |
| Enter | Toggle expand/collapse in JSON viewer |
| Ctrl + P | Expand all folds in JSON viewer |
| Ctrl + N | Collapse all folds in JSON viewer |
| Alt + B | Move the cursor to the previous nearest character within set(.,|,(,),[,]) |
| Alt + F | Move the cursor to the next nearest character within set(.,|,(,),[,]) |
| Ctrl + W | Erase to the previous nearest character within set(.,|,(,),[,]) |
| Alt + D | Erase to the next nearest character within set(.,|,(,),[,]) |
Usage
|
)