jnv-0.3.0 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
- Use jaq to apply
jqfilter- This eliminates the need for users to prepare
jqon their own.
- This eliminates the need for users to prepare
[!IMPORTANT] Starting from v0.3.0, the transition from libjq Rust binding j9 to jq clone jaq was made.
This change eliminated the need to manage C-related dependencies that include external tools like autoconf, thus simplifying the build process. However, please note that some filters are not yet supported by jaq. For more details, refer to GitHub issue #24.
Please continue to provide feedback regarding this transition.
- 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
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
|
)
)