Skip to content

PgJsonConverter

Namespace: Ankus.Serialization

Assembly: Ankus.Runtime.dll

Serializes PgJson as an embedded JSON value rather than a quoted string or wrapper object.

public sealed class PgJsonConverter : JsonConverter<PgJson>

Inheritance: object, JsonConverter, JsonConverter<PgJson>

public PgJsonConverter()

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Section titled “Read(ref Utf8JsonReader, Type, JsonSerializerOptions)”
public override PgJson Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters:

reader — Utf8JsonReader

typeToConvert — Type

options — JsonSerializerOptions

Returns: PgJson

Write(Utf8JsonWriter, PgJson, JsonSerializerOptions)

Section titled “Write(Utf8JsonWriter, PgJson, JsonSerializerOptions)”
public override void Write(Utf8JsonWriter writer, PgJson value, JsonSerializerOptions options)

Parameters:

writer — Utf8JsonWriter

value — PgJson

options — JsonSerializerOptions