IJsonSerializable

Namespace: SnowBank.Data.Json · interface

Supports custom JSON direct serialization.

Remarks

Types that handle their own custom serialization should typically implement this interface, as well as IJsonSerializable and IJsonDeserializable.

If the original type cannot be modified, see IJsonSerializer.

Methods

JsonSerialize

void JsonSerialize(CrystalJsonWriter writer)

Serializes this instance as JSON

  • writer — Writer that will output the content of this instance