Language

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))]
public class JsonPatchDocument : Microsoft.AspNetCore.Http.Metadata.IEndpointParameterMetadataProvider, Microsoft.AspNetCore.JsonPatch.IJsonPatchDocument
[]
type JsonPatchDocument = class
    interface IJsonPatchDocument
[]
type JsonPatchDocument = class
    interface IJsonPatchDocument
    interface IEndpointParameterMetadataProvider
Public Class JsonPatchDocument
Implements IJsonPatchDocument
Public Class JsonPatchDocument
Implements IEndpointParameterMetadataProvider, IJsonPatchDocument
Inheritance
JsonPatchDocument
Attributes
Newtonsoft.Json.JsonConverterAttribute
Implements

Constructors

Name Description
JsonPatchDocument()
JsonPatchDocument(List, IContractResolver)

Properties

Name Description
ContractResolver
Operations

Methods

Name Description
Add(String, Object)

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

ApplyTo(Object, Action)

Apply this JsonPatchDocument

ApplyTo(Object, IObjectAdapter, Action)

Apply this JsonPatchDocument

ApplyTo(Object, IObjectAdapter)

Apply this JsonPatchDocument

ApplyTo(Object)

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

Name Description
IEndpointParameterMetadataProvider.PopulateMetadata(ParameterInfo, EndpointBuilder)

Populates metadata for the related Endpoint and ParameterInfo.

IJsonPatchDocument.GetOperations()

Applies to