Class JsonRecordSerializer
- Namespace
- Chronicler
- Assembly
- Chronicler.dll
Serializes IRecordable state graphs to and from JSON through the chronicler API.
public static class JsonRecordSerializer
- Inheritance
-
JsonRecordSerializer
- Inherited Members
Methods
Populate(IRecordable, string)
Loads JSON state into an existing recordable instance.
public static void Populate(IRecordable target, string json)
Parameters
targetIRecordablejsonstring
Populate(IRecordable, string, ChronicleContext?)
Loads JSON state into an existing recordable instance.
public static void Populate(IRecordable target, string json, ChronicleContext? context)
Parameters
targetIRecordablejsonstringcontextChronicleContext
Serialize(IRecordable, ChronicleContext?, bool)
Serializes the current state of a recordable instance into JSON.
public static string Serialize(IRecordable target, ChronicleContext? context, bool writeIndented = false)
Parameters
targetIRecordablecontextChronicleContextwriteIndentedbool
Returns
Serialize(IRecordable, bool)
Serializes the current state of a recordable instance into JSON.
public static string Serialize(IRecordable target, bool writeIndented = false)
Parameters
targetIRecordablewriteIndentedbool