Skip to main content

write_path

Function write_path 

Source
pub fn write_path(
    out: &Expr,
    ctx: Value,
    value: Value,
) -> Result<Value, EvalError>
Expand description

Write a value at the path location inside ctx, returning the updated ctx. out must be a Path Expr.

Accepts the same dot form and RFC 9535-style bracket notation as read_path (see its docs for syntax + examples). Intermediate objects along the path are created automatically, mirroring the existing dot-form behaviour.