JsonPatchOperation interface

The JSON model for a JSON Patch operation

Properties

from

The path to copy from for the Move/Copy operation.

op

The patch operation

path

The path for the operation. In the case of an array, a zero based index can be used to specify the position in the array (e.g. /biscuits/0/name). The "-" character can be used instead of an index to insert at the end of the array (e.g. /biscuits/-).

value

The value for the operation. This is either a primitive or a JToken.

Property Details

from

The path to copy from for the Move/Copy operation.

from: string

Property Value

string

op

The patch operation

op: Operation

Property Value

path

The path for the operation. In the case of an array, a zero based index can be used to specify the position in the array (e.g. /biscuits/0/name). The "-" character can be used instead of an index to insert at the end of the array (e.g. /biscuits/-).

path: string

Property Value

string

value

The value for the operation. This is either a primitive or a JToken.

value: any

Property Value

any