Crate fionn_cli

Crate fionn_cli 

Source
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

CommandDescription
gronConvert JSON to greppable line format
diffCompute RFC 6902 diff between two JSON files
patchApply JSON Patch to a file
mergeMerge multiple JSON files (RFC 7396)
queryQuery JSON with path expressions
formatPretty-print or compact JSON
validateCheck JSON validity
schemaInfer JSON schema from data
streamProcess JSONL streams
benchRun basic benchmarks

§Library Usage

This crate is primarily a CLI tool. For programmatic access to fionn functionality, use the constituent library crates directly:

Re-exports§

pub use fionn_gron as gron;
pub use fionn_diff as diff;
pub use fionn_core as core;