Expand description
§fionn-cli
Command-line interface for fionn - a Swiss Army knife for JSON with SIMD acceleration.
§Installation
cargo install fionn-cli§Usage
# Convert JSON to greppable format
fionn gron data.json
# Convert back to JSON
fionn gron -u data.gron
# Diff two JSON files
fionn diff old.json new.json
# Apply a JSON patch
fionn patch data.json changes.patch
# Merge JSON files
fionn merge base.json overlay.json
# Query JSON
fionn query '.users[0].name' data.json
# Format JSON
fionn format data.json
fionn format -c data.json # compact
# Validate JSON
fionn validate data.json
# Infer schema
fionn schema data.json§Subcommands
| Command | Description |
|---|---|
gron | Convert JSON to greppable line format |
diff | Compute RFC 6902 diff between two JSON files |
patch | Apply JSON Patch to a file |
merge | Merge multiple JSON files (RFC 7396) |
query | Query JSON with path expressions |
format | Pretty-print or compact JSON |
validate | Check JSON validity |
schema | Infer JSON schema from data |
stream | Process JSONL streams |
bench | Run basic benchmarks |
§Library Usage
This crate is primarily a CLI tool. For programmatic access to fionn functionality, use the constituent library crates directly:
fionn- Umbrella crate with all functionalityfionn-gron- Greppable JSON transformationfionn-diff- JSON diff, patch, mergefionn-tape- Tape-based JSON representationfionn-simd- SIMD acceleration primitivesfionn-core- Core types and traits
Re-exports§
pub use fionn_gron as gron;pub use fionn_diff as diff;pub use fionn_core as core;