Share via


JsonPatchDocument.Replace(String, Object) Method

Definition

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

public Microsoft.AspNetCore.JsonPatch.SystemTextJson.JsonPatchDocument Replace(string path, object value);
member this.Replace : string * obj -> Microsoft.AspNetCore.JsonPatch.SystemTextJson.JsonPatchDocument
Public Function Replace (path As String, value As Object) As JsonPatchDocument

Parameters

path
String

target location

value
Object

value

Returns

The JsonPatchDocument for chaining.

Applies to