IJsonSerializer<T>

Namespace: SnowBank.Data.Json · interface

Type that can serialize instances of T into JSON

Remarks

Types can serialize themselves, but this interface can also be used on "helper types" that are separate (manually written, or via source code generation)

Methods

Serialize

void Serialize(CrystalJsonWriter writer, T instance)

Writes a JSON representation of a value to the specified output

  • writer — Writer that will output the JSON in the desired format
  • instance — Instance to serialize