query


Description:

public static YamlValue? query (YamlValue root, string path)

Queries a YamlValue tree using dot notation with array indices.

Path segments are separated by dots. Array indices use bracket notation.

Example: "server.hosts[0]" accesses the first element of the "hosts" sequence under the "server" mapping.

Parameters:

root

root YamlValue.

path

dot-separated path.

Returns:

matching YamlValue, or null if not found.