Home PatchJsonConverter Class
PatchJsonConverter Class
Cancel

PatchJsonConverter Class

Namespace: Json.Patch

Inheritance: PatchJsonConverter 🡒 WeaklyTypedJsonConverter<JsonPatch> 🡒 JsonConverter<JsonPatch> 🡒 JsonConverter 🡒 object

Implemented interfaces:

  • IWeaklyTypedJsonConverter

Provides JSON conversion logic for Json.Patch.JsonPatch.

Properties

NameTypeSummary
HandleNullbool 
TypeType 

Methods

Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Reads and converts the JSON to type Json.Patch.JsonPatch.

Declaration

1
public override JsonPatch Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
ParameterTypeDescription
readerref Utf8JsonReaderThe reader.
typeToConvertTypeThe type to convert.
optionsJsonSerializerOptionsAn object that specifies serialization options to use.

Returns

The converted value.

Write(Utf8JsonWriter writer, JsonPatch value, JsonSerializerOptions options)

Writes a specified value as JSON.

Declaration

1
public override void Write(Utf8JsonWriter writer, JsonPatch value, JsonSerializerOptions options)
ParameterTypeDescription
writerUtf8JsonWriterThe writer to write to.
valueJsonPatchThe value to convert to JSON.
optionsJsonSerializerOptionsAn object that specifies serialization options to use.
Contents