Rust

json_machine

Module

A 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 Items

The items of a JSON document, pulled one at a time.

use utopia_migration::json_machine::Decoder;
Rust
pub enum Decoder

How items are decoded.

Rust
pub const CHUNK_SIZE: usize = 1024 * 16

The chunk size FileChunks reads.