Crates.io | json-session |
lib.rs | json-session |
version | 0.1.0 |
created_at | 2025-02-02 18:21:52.72926+00 |
updated_at | 2025-02-02 18:21:52.72926+00 |
description | A streaming parser for JSON which emits fragments and location spans from an iterator-style API. |
homepage | |
repository | https://github.com/mstange/json-size-profiler |
max_upload_size | |
id | 1539780 |
size | 34,388 |
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