jarq 0.1.0

An interactive jq-like JSON query tool with a TUI
Documentation

jarq

An interactive jq-like JSON query tool with a TUI.

Should you use this instead of jq? Definitely not, this was just an experiment using a TUI and live filtering.

Usage

# Interactive TUI mode
echo '{"name": "Alice", "age": 30}' | jarq
cat data.json | jarq

# Non-interactive mode (like jq)
echo '{"name": "Alice"}' | jarq '.name'
jarq '.items[]' data.json

In interactive mode, type filter expressions and see results in real-time.

Filter Syntax

.               # identity
.foo            # field access
.[0]            # array index
.[]             # iterate
.foo.bar        # chaining
.foo | length   # pipes

# Construction
[.a, .b]        # array
{name: .foo}    # object
{(.key): .val}  # dynamic key

# Builtins
length, keys, values, type, first, last,
reverse, sort, min, max, unique, flatten,
add, empty, not

Building

cargo build --release

License

MIT