Namespace Chronicler.Serialization
Transports and adapters for Chronicler's explicit state model. JsonRecordSerializer and, in the standard package, MemoryPackRecordSerializer apply the shared IRecordable schema to existing runtime shells.
State-backed JSON converters use IStateBacked<TState> when reconstruction from canonical state is the intended contract. SerializationPayloadEditor supports controlled payload editing. Recording contracts, context, and links remain in Chronicler; hash APIs live in Chronicler.Hashing.
Classes
- JsonRecordSerializer
Serializes IRecordable state graphs to and from JSON through the chronicler API.
- MemoryPackRecordSerializer
Serializes IRecordable state graphs to and from MemoryPack through the chronicler API.
- SerializationPayloadEditor
Edits JSON properties and MemoryPack entries without populating a recordable object graph.
- StateJsonConverterFactory
Creates JSON converters for types that explicitly implement IStateBacked<TState>.
- StateJsonConverter<TRecord, TState>
Serializes and deserializes an object through its canonical state value.