The JSON model for a JSON Patch operation

interface JsonPatchOperation {
    from?: string;
    op: Operation;
    path: string;
    value?: any;
}

Properties

Properties

from?: string

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

The patch operation

path: string

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?: any

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