json-streamparse-rs 0.1.0

Streaming JSON balance detector: feed bytes incrementally, ask whether the buffer currently holds a complete top-level value. String/escape aware. Zero deps.
Documentation
  • Coverage
  • 100%
    8 out of 8 items documented1 out of 8 items with examples
  • Size
  • Source code size: 19.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 308.74 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s Average build duration of successful builds.
  • all releases: 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • MukundaKatta/json-streamparse-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MukundaKatta

json-streamparse-rs

crates.io

Streaming JSON balance detector. "Can I hand this to serde_json yet?" in O(1) per byte. String/escape-aware.

use json_streamparse_rs::Balancer;
let mut b = Balancer::new();
b.push(b"{\"name\":\"Cl");
assert!(!b.complete());
b.push(b"aude\",\"v\":1}");
assert!(b.complete());

Zero deps. MIT or Apache-2.0.