Static methods

staticapplyOperation(data:JSONData, operation:JSONData):JSONData

For the given JSON data, apply a single JSONPatch operation.

Parameters:

data

A JSON data object. You can pass Dynamic or Array<Dynamic> here.

patch

A JSONPatch operation to perform.

Returns:

The resulting JSON data.

See also:

staticapplyPatches(data:JSONData, patch:Array<JSONData>):JSONData

For the given JSON data, apply all the provided JSONPatch operations.

Parameters:

data

A JSON data object. You can pass Dynamic or Array<Dynamic> here.

patch

An array of JSONPatch operations to perform.

Returns:

The resulting JSON data.

See also: