Function modify
Parameters
- text: string
- path: JSONPath
The path of the value to change. The path represents either to the document root, a property or an array item. If the path points to an non-existing property or item, it will be created.
- value: any
The new value for the specified property or item. If the value is undefined, the property or item will be removed.
- options: ModificationOptions
Options
Returns EditResult
The edit operations describing the changes to the original document, following the format described in
EditResult. To apply the edit operations to the input, useapplyEdits.
Computes the edit operations needed to modify a value in the JSON document.