JsonPatchDocument Class

Definition

public ref class JsonPatchDocument : Microsoft::AspNetCore::JsonPatch::IJsonPatchDocument
[Newtonsoft.Json.JsonConverter(typeof(Microsoft.AspNetCore.JsonPatch.Converters.JsonPatchDocumentConverter))]
public class JsonPatchDocument : Microsoft.AspNetCore.JsonPatch.IJsonPatchDocument
[<Newtonsoft.Json.JsonConverter(typeof(Microsoft.AspNetCore.JsonPatch.Converters.JsonPatchDocumentConverter))>]
type JsonPatchDocument = class
    interface IJsonPatchDocument
Public Class JsonPatchDocument
Implements IJsonPatchDocument
Inheritance
JsonPatchDocument
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Constructors

JsonPatchDocument()
JsonPatchDocument(List<Operation>, IContractResolver)

Properties

ContractResolver
Operations

Methods

Add(String, Object)

Add operation. Will result in, for example, { "op": "add", "path": "/a/b/c", "value": [ "foo", "bar" ] }

ApplyTo(Object)

Apply this JsonPatchDocument

ApplyTo(Object, Action<JsonPatchError>)

Apply this JsonPatchDocument

ApplyTo(Object, IObjectAdapter)

Apply this JsonPatchDocument

ApplyTo(Object, IObjectAdapter, Action<JsonPatchError>)

Apply this JsonPatchDocument

Copy(String, String)

Copy the value at specified location to the target location. Will result in, for example: { "op": "copy", "from": "/a/b/c", "path": "/a/b/e" }

Move(String, String)

Removes value at specified location and add it to the target location. Will result in, for example: { "op": "move", "from": "/a/b/c", "path": "/a/b/d" }

Remove(String)

Remove value at target location. Will result in, for example, { "op": "remove", "path": "/a/b/c" }

Replace(String, Object)

Replace value. Will result in, for example, { "op": "replace", "path": "/a/b/c", "value": 42 }

Test(String, Object)

Test value. Will result in, for example, { "op": "test", "path": "/a/b/c", "value": 42 }

Explicit Interface Implementations

IJsonPatchDocument.GetOperations()

Applies to