json-session

Crates.iojson-session
lib.rsjson-session
version
sourcesrc
created_at2025-02-02 18:21:52.72926+00
updated_at2025-02-02 18:21:52.72926+00
descriptionA streaming parser for JSON which emits fragments and location spans from an iterator-style API.
homepage
repositoryhttps://github.com/mstange/json-size-profiler
max_upload_size
id1539780
Cargo.toml error:TOML parse error at line 27, column 1 | 27 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Markus Stange (mstange)

documentation

README

json-session

Streaming parser for JSON. This crate provides an iterator which yields values of the following enum variants: BeginObject, ObjectProperty, EndObject, BeginArray, EndArray, and PrimitiveValue.

This allows gathering statistics about the contents of large JSON documents without ever holding the entire document in memory.

Every JsonFragmentWithSpan has location information attached to it, saying at which byte offset (and at which line and column) the relevant fragment began and ended.

The code was originally based on tinyjson.

MIT licensed

Commit count: 148

cargo fmt