pub fn read_path(path: &str, ctx: &Value) -> Result<Value, EvalError>Expand description
Read a path from a JSON value.
Supports the simple dot form $.a.b.c, plus RFC 9535-style bracket
notation for object keys that contain a literal .: $.a["p.md"] reads
ctx.a["p.md"], and $["x.y"] reads ctx["x.y"]. Bracket segments may
be chained directly ($.a["x"]["y"]) or followed by a dot segment
($["x.y"].inner). Bracket keys support no escaping — a literal " in
a key cannot be represented.
Paths without [ take the original dot-split code path unchanged
(no behavioural change for existing callers).