remove


Description:

public static JsonValue? remove (JsonValue root, string path)

Removes a key at the given path, returning a new tree.

The original tree is not modified (immutable operation).

Example:

    var cleaned = Json.remove (root, "$.temp");

Parameters:

root

root value (must be an object).

path

JSON path expression (e.g. `$.key`).

Returns:

new tree with the key removed, or null if path invalid.