json_machine
ModuleA streaming JSON pull parser: the items of a top-level array (or the key/value pairs of a top-level object), decoded one at a time from a file read in 16 KiB chunks, so a large export never sits in memory whole.
Contents
use utopia_migration::json_machine::Items;Rust
pub struct ItemsThe items of a JSON document, pulled one at a time.
use utopia_migration::json_machine::Decoder;Rust
pub enum DecoderHow items are decoded.
Rust
pub const CHUNK_SIZE: usize = 1024 * 16The chunk size FileChunks reads.