JsonPatchDocument.Add(String, Object) Method

Definition

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

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

Parameters

path
String

target location

value
Object

value

Returns

The JsonPatchDocument for chaining.

Applies to