# SerializedSegmentedTrie

Defined in: [packages/trie/src/serialization/json.ts:26](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/trie/src/serialization/json.ts#L26)

A plain, inert description of a segmented trie: the implementation kind and every entry, in the iteration order `entries()` reports. It holds no behavior and no reference to the structure it came from, so it can be stored, compared, structurally cloned, or sent through `postMessage`. It survives `JSON.stringify` when the values themselves do.

`kind` identifies the storage layout to restore. Restoring replays the entries in order, so a round trip also preserves iteration order: replayed children land in each node’s `Map` exactly as the walk first found them.

## Type Parameters

### V

`V`

## Properties

### schemaVersion

> `readonly` **schemaVersion**: `1`

Defined in: [packages/trie/src/serialization/json.ts:28](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/trie/src/serialization/json.ts#L28)

Wire-schema version.

***

### kind

> `readonly` **kind**: `"uncompressed"` | `"compressed"`

Defined in: [packages/trie/src/serialization/json.ts:30](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/trie/src/serialization/json.ts#L30)

The storage layout to restore when no factory override is supplied.

***

### entries

> `readonly` **entries**: readonly [`SegmentedTrieEntry`](/reference/knotkit/trie/interfaces/segmentedtrieentry/)<`V`>\[]

Defined in: [packages/trie/src/serialization/json.ts:32](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/trie/src/serialization/json.ts#L32)

Every entry, in iteration order.
