Skip to main content

Crate jetro_experimental

Crate jetro_experimental 

Source
Expand description

jetro-experimental — structural stage-1 over JSON bytes.

Single pass → columnar output:

  • byte_offset[i] : u32 // position of every structural char
  • kind[i] : Kind // {, }, [, ], “ (opening), :, ,
  • depth[i] : u16 // nesting depth at that offset

Strings tracked end-to-end; bytes between unescaped quotes never appear in the output. AVX2 fast path ~25 GB/s, scalar fallback ~5-10 GB/s.

Re-exports§

pub use op::run_count;
pub use op::run_first;
pub use op::Ctx;
pub use op::Op;
pub use op::OpPlan;
pub use api::count_key;
pub use api::find_eq;
pub use api::find_eq_compound;
pub use api::from_bytes;
pub use api::from_bytes_with;
pub use api::json_number_eq;
pub use api::json_string_eq;
pub use api::parse_f64;
pub use api::parse_i64;
pub use api::BuildOptions;
pub use api::ByteSpan;
pub use api::Error;
pub use api::KeyHits;
pub use api::StructuralIndex;
pub use api::TokenId;
pub use api::TokenKind;
pub use api::Tokens;

Modules§

api
Public API surface for jetro-experimental.
op
Generic operator algebra over JSON token sets.