共用方式為


JsonPatchOperation interface

JSON 修補程式作業的 JSON 模型

屬性

from

移動/複製作業的複製路徑。

op

修補程式作業

path

作業的路徑。 對於陣列,可以使用從零開始的索引來指定陣列中的位置(例如 /biscuits/0/name)。 可以使用「-」字元代替索引插入數組末尾(例如 /biscuits/-)。

value

作業的值。 這要麼是原始人,要麼是 JToken。

屬性詳細資料

from

移動/複製作業的複製路徑。

from: string

屬性值

string

op

修補程式作業

op: Operation

屬性值

path

作業的路徑。 對於陣列,可以使用從零開始的索引來指定陣列中的位置(例如 /biscuits/0/name)。 可以使用「-」字元代替索引插入數組末尾(例如 /biscuits/-)。

path: string

屬性值

string

value

作業的值。 這要麼是原始人,要麼是 JToken。

value: any

屬性值

any