SwiftDocCJSONPatchOperationEnumerationJSONPatchOperationA patch operation to update a JSON value.enum JSONPatchOperationDiscussionValues of this type follow the JSON Patch format.TopicsApplying Patchesstruct JSONPatchApplierA utility type for applying JSON patches.Operationsenum PatchOperationThe patch operation to apply.Enumeration Casescase add(pointer: JSONPointer, value: AnyCodable)case remove(pointer: JSONPointer)A remove operation.case replace(pointer: JSONPointer, value: AnyCodable)A replacement operation.Initializersinit(from: any Decoder) throwsinit<Value>(variantPatchOperation: VariantPatchOperation<Value>, pointer: JSONPointer)Creates a patch to update a JSON value.Instance Propertiesvar operation: PatchOperationThe operation to apply.var pointer: JSONPointerThe pointer to the value to modify.Instance Methodsfunc encode(to: any Encoder) throwsfunc removingPointerFirstPathComponent() -> JSONPatchOperationReturns the patch operation with the first path component of the pointer removed.Type Methodsstatic func add(pointer: JSONPointer, encodableValue: any Encodable) -> JSONPatchOperationstatic func replace(pointer: JSONPointer, encodableValue: any Encodable) -> JSONPatchOperationA replacement operation.Enumerationsenum CodingKeys