Table of Contents

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

target IRecordable
json string

Populate(IRecordable, string, ChronicleContext?)

Loads JSON state into an existing recordable instance.

public static void Populate(IRecordable target, string json, ChronicleContext? context)

Parameters

target IRecordable
json string
context ChronicleContext

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

target IRecordable
context ChronicleContext
writeIndented bool

Returns

string

Serialize(IRecordable, bool)

Serializes the current state of a recordable instance into JSON.

public static string Serialize(IRecordable target, bool writeIndented = false)

Parameters

target IRecordable
writeIndented bool

Returns

string