Expand description
JSONB binary format for O(log n) field access on Ring 0.
The JSONB format is a compact binary encoding of JSON values with pre-computed byte offsets. Object keys are sorted alphabetically, enabling binary-search field lookups in <100ns for typical objects.
§Type Tags
| Tag | Type | Data |
|---|---|---|
| 0x00 | Null | (none) |
| 0x01 | Boolean false | (none) |
| 0x02 | Boolean true | (none) |
| 0x03 | Int64 | 8 bytes LE |
| 0x04 | Float64 | 8 bytes IEEE 754 LE |
| 0x05 | String | 4-byte LE length + UTF-8 bytes |
| 0x06 | Array | 4-byte count + offset table + elements |
| 0x07 | Object | 4-byte count + offset table + key-value data |
Modules§
- tags
- Type tags for the JSONB binary format.
Structs§
- Jsonb
Accessor - Zero-allocation JSONB accessor for Ring 0 hot-path field lookups.
- Jsonb
Encoder - Encodes
serde_json::Valueinto JSONB binary format.